Home > @esengine/ecs-framework-monorepo > MathUtils > catmullRom
MathUtils.catmullRom() method
Catmull-Rom样条插值
Signature:
typescript
static catmullRom(p0: Vector2, p1: Vector2, p2: Vector2, p3: Vector2, t: number): Vector2;
Parameters
Parameter | Type | Description |
---|---|---|
p0 | 控制点0 | |
p1 | 控制点1 | |
p2 | 控制点2 | |
p3 | 控制点3 | |
t | number | 参数(0到1) |
Returns:
插值结果点