Skip to content

five-on-it / packages/shared/src/math / nlerpQuat

Function: nlerpQuat() ​

nlerpQuat(a, b, t): Quat

Defined in: packages/shared/src/math.ts:75

Normalized linear interpolation between two unit quaternions, taking the short arc. Good enough for the small per-frame steps of entity interpolation.

Parameters ​

a ​

Quat

b ​

Quat

t ​

number

Returns ​

Quat