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
cedarcantab
Apr 23 min read
p2 HeightField
var Shape = require('./Shape') , vec2 = require('../math/vec2') , shallowClone = require('../utils/Utils').shallowClone; ...
5 views0 comments
cedarcantab
Mar 315 min read
SPH
https://hmbd.wordpress.com/2019/03/24/references-on-smooth-particle-hydrodynamics-sph/ sketch.js // Fluid Simulation // Daniel Shiffman...
3 views0 comments
cedarcantab
Mar 303 min read
Gift Wrapping Algorithm Convex Hull
There are many different convex hull algorithms. I looked at several, including Jarvis March, Graham Scan and QuickHull. Simplest is...
4 views0 comments
cedarcantab
Mar 264 min read
gaussian elimination 1
Gaussian elimination, also known as row reduction, is an algorithm for solving systems of linear equations. It consists of a sequence of...
4 views0 comments
cedarcantab
Mar 264 min read
Verlet Physics Part 2+ Rope
Particle class class Point { constructor(x, y, vx, vy, radius) { this.pos = new Phaser.Math.Vector2(x, y); this.oldpos = new...
6 views0 comments
cedarcantab
Mar 262 min read
Verlet Physics Rigid Body
class Dot extends Phaser.Geom.Point { constructor(scene, x, y, vx, vy) { super(x, y); this.scene = scene; this.graphics =...
4 views0 comments
cedarcantab
Mar 252 min read
Viscosity
class Simulation{ constructor(){ this.particles = []; this.AMOUNT_PARTICLES = 2000; this.VELOCITY_DAMPING = 0.99; this.GRAVITY = new...
6 views0 comments
cedarcantab
Mar 244 min read
Graham Scan convex hull algorithm
The Graham scan algorithm is a simple and efficient method for computing the convex hull of a set of 2-dimensional points. Let’s break...
4 views0 comments
cedarcantab
Mar 244 min read
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...
3 views0 comments
cedarcantab
Mar 246 min read
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...
1 view0 comments
cedarcantab
Mar 249 min read
Eulerian Fluid Simulator
var canvas = document.getElementById("myCanvas"); var c = canvas.getContext("2d"); canvas.width = window.innerWidth - 20; canvas.height =...
4 views0 comments
cedarcantab
Mar 242 min read
Double Density Relaxation
class Simulation{ constructor(){ this.particles = []; this.AMOUNT_PARTICLES = 2000; this.VELOCITY_DAMPING = 1; this.GRAVITY = new...
1 view0 comments
cedarcantab
Mar 243 min read
Hash based grid
class Particle{ constructor(position){ this.position = position; this.prevPosition = position; this.velocity = new Vector2(0,0);...
4 views0 comments
cedarcantab
Mar 246 min read
GJK - EPA
Simplex becomes a polytope when you start adding vertices to it. The Expanding Polytope Algorithm (EPA) is a method used in computational...
3 views0 comments
cedarcantab
Mar 243 min read
GJK in Javascript, Part 3: Baycentric Coordinates
class GJKResult { constructor() { this.collide = false; this.simplex = new Simplex(); } } const GJK_MAX_ITERATION = 20; // params b1,...
3 views0 comments
cedarcantab
Mar 218 min read
s2 Solver xpbd
Solver2d.h // SPDX-FileCopyrightText: 2024 Erin Catto // SPDX-License-Identifier: MIT #pragma once #include <stdint.h> typedef struct...
2 views0 comments
cedarcantab
Mar 212 min read
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...
5 views0 comments
cedarcantab
Mar 203 min read
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...
1 view0 comments
cedarcantab
Mar 193 min read
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 //...
6 views0 comments
Home: Blog2
Home: 配信登録
bottom of page