跳到主要内容

KQuaternion.slerp() method

和另外一个四元数做球面线性插值。

Handles the spherical linear interpolation between quaternions. t represents the amount of rotation between this quaternion (where t is 0) and qb (where t is 1). This quaternion is set to the result.

Signature:

slerp(qb: KQuaternion, t: number): void;

Links: slerp(qb: KQuaternion, t: number): void;

Parameters

Parameter

Type

Description

qb

KQuaternion

输入另一个四元数。

The another quaternion.

t

number

输入插值比例。

The interpolate ratio.

Returns:

void