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