Skip to content

Home > @esengine/ecs-framework-monorepo > Interpolation > slerp

Interpolation.slerp() method

球面线性插值(适用于方向向量)

Signature:

typescript
static slerp(from: Vector2, to: Vector2, t: number): Vector2;

Parameters

Parameter

Type

Description

from

Vector2

起始单位向量

to

Vector2

目标单位向量

t

number

插值参数 (0-1)

Returns:

Vector2

插值结果向量

基于 MIT 许可证发布