spline: add catmull-rom demo

This commit is contained in:
2026-08-15 13:39:47 +02:00
parent 8714bd5580
commit f2222079c1
7 changed files with 135 additions and 29 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ export default class Vec2d implements Point {
}
length(): number {
return Math.sqrt(this.x * this.x + this.y * this.y);
return Math.hypot(this.x, this.y);
}
distance(other: Vec2d): number {