slerp


Description:

public void slerp (Quaternion a, Quaternion b, float t)

Performs a spherical linear interpolation between two quaternions.

Noteable properties: <itemizedlist> <listitem> commutative: No </listitem> <listitem> constant velocity: Yes < /listitem> <listitem> torque minimal (travels along the surface of the 4-sphere): Yes </listitem> <listitem> more expensive than nlerp </listitem> </itemizedlist>

Parameters:

this

The destination Quaternion

a

The first Quaternion

b

The second Quaternion

t

The factor in the range [0,1] used to interpolate between quaternion a and b.