Skip to content

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:

Vector2

插值结果向量

基于 MIT 许可证发布