Home > @esengine/ecs-framework-monorepo > Interpolation > vectorSpline
Interpolation.vectorSpline() method
向量样条曲线插值
Signature:
typescript
static vectorSpline(points: Vector2[], t: number): Vector2;
Parameters
Parameter | Type | Description |
---|---|---|
points | Vector2[] | 控制点数组 |
t | number | 插值参数 (0-1) |
Returns:
插值结果向量