top of page
COZY COZY WORLD
I am an ordinary Japanese salaryman in his 50's.
The posts are mostly about my attempts at programming which I have taken up recently to maintain logical thinking.
And a bit about my travels around the country.
Home: ようこそ!
Search
Divide and Conquer convex hull algorithm
The Divide and Conquer Convex Hull Algorithm is a powerful method for finding the convex hull of a set of 2-dimensional points. Let’s...
cedarcantab
Mar 24, 20244 min read
3 views
0 comments
Andrew's Monotone Chain convex hull algorithm
Andrew’s monotone chain convex hull algorithm is a method for constructing the convex hull of a set of 2-dimensional points. Let’s break...
cedarcantab
Mar 24, 20246 min read
1 view
0 comments
Eulerian Fluid Simulator
var canvas = document.getElementById("myCanvas"); var c = canvas.getContext("2d"); canvas.width = window.innerWidth - 20; canvas.height =...
cedarcantab
Mar 24, 20249 min read
4 views
0 comments
Double Density Relaxation
class Simulation{ constructor(){ this.particles = []; this.AMOUNT_PARTICLES = 2000; this.VELOCITY_DAMPING = 1; this.GRAVITY = new...
cedarcantab
Mar 24, 20242 min read
1 view
0 comments
Hash based grid
class Particle{ constructor(position){ this.position = position; this.prevPosition = position; this.velocity = new Vector2(0,0);...
cedarcantab
Mar 24, 20243 min read
4 views
0 comments
GJK - EPA
Simplex becomes a polytope when you start adding vertices to it. The Expanding Polytope Algorithm (EPA) is a method used in computational...
cedarcantab
Mar 24, 20246 min read
4 views
0 comments
GJK in Javascript, Part 3: Baycentric Coordinates
class GJKResult { constructor() { this.collide = false; this.simplex = new Simplex(); } } const GJK_MAX_ITERATION = 20; // params b1,...
cedarcantab
Mar 24, 20243 min read
3 views
0 comments
s2 Solver xpbd
Solver2d.h // SPDX-FileCopyrightText: 2024 Erin Catto // SPDX-License-Identifier: MIT #pragma once #include <stdint.h> typedef struct...
cedarcantab
Mar 21, 20248 min read
2 views
0 comments
Least Squares Method
The least squares method is a mathematical technique used to find the best-fitting curve for a given set of data points. It aims to...
cedarcantab
Mar 21, 20242 min read
5 views
0 comments
Newton's method
Newton’s Method for Nonlinear Equations Newton’s method is a powerful iterative algorithm used to find the roots (or solutions) of...
cedarcantab
Mar 20, 20243 min read
1 view
0 comments
User Interaction in 3D World: Grabber
This is me trying to understand the code frmo this video https://youtu.be/iH_UgUb-LYM?si=-2cjlL4BFnEuZHaL A Ball to grab hold of //...
cedarcantab
Mar 19, 20243 min read
6 views
0 comments
Soft Bunny
This is me trying to understand the code from this video https://youtu.be/uCaHXkS2cUg?si=MnitHLo52tBXjwic // ----------------------------...
cedarcantab
Mar 19, 20244 min read
3 views
0 comments
Position Based Dynamics Bead on Wire
Demo Code from this video https://youtu.be/qISgdDhdCro?si=jXIUH6Uc5z494A_y class Bead { constructor(radius, mass, pos) { this.radius =...
cedarcantab
Mar 19, 20242 min read
2 views
0 comments
LU Decomposition
LU decomposition algorithm, which is a powerful technique for solving systems of linear equations and other numerical problems. Here’s...
cedarcantab
Mar 17, 20242 min read
6 views
0 comments


Jacobi method
The Jacobi method is an iterative algorithm used to find solutions for a system of linear equations. Let’s break it down: Problem Setup:...
cedarcantab
Mar 16, 20243 min read
7 views
0 comments


Linear Equations: Gauss-Seidel
The Gauss-Seidel method is an iterative technique used to solve a system of linear equations. Here’s how it works: System of Equations:...
cedarcantab
Mar 16, 20243 min read
7 views
0 comments
Blob Physics
https://www.gamedev.net/forums/topic/579014-blob-physics-tutorial/
cedarcantab
Mar 16, 20241 min read
3 views
0 comments
Position Based Dynamics
class Vertex { constructor(world, body, x, y) { this.position = new Phaser.Math.Vector2(x,y); this.oldPosition = new...
cedarcantab
Mar 14, 20247 min read
12 views
0 comments


Spring Model Soft body Physics
Inspired by this youtube video here In P5!!! by kraftpy class MassPoint { constructor(x, y, mass, radius, frictionCoeff){ this.pos =...
cedarcantab
Mar 14, 20244 min read
4 views
0 comments
Buoyancy
<!DOCTYPE html> <html> <head> <title>Buoyancy demo - p2.js physics engine</title> <script src="../build/p2.js"></script> <script...
cedarcantab
Mar 14, 20242 min read
3 views
0 comments
Home: Blog2
Home: 配信登録
bottom of page