quaternion.slerp

Edit

Performs spherical linear interpolation between two quaternions, returning a mix between the two.

q = quaternion.slerp(a, b, t)

Arguments

NameTypeDescription
aquaternion The first quaternion.
bvector The second quaternion.
tnumber The interpolation parameter. 0.0 returns a, 1.0 returns b, 0.5 returns a vector halfway between a and b, etc.

Returns

NameTypeDescription
qquaternion The interpolated quaternion.

See also