Home > @esengine/ecs-framework-monorepo > MathUtils > cubicBezier
MathUtils.cubicBezier() method
贝塞尔三次曲线
Signature:
typescript
static cubicBezier(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:
曲线上的点