Skip to content

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

Interpolation.vector2() method

向量线性插值

Signature:

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

Parameters

Parameter

Type

Description

from

Vector2

起始向量

to

Vector2

目标向量

t

number

插值参数 (0-1)

Returns:

Vector2

插值结果向量

基于 MIT 许可证发布