Cogl.Quaternion.prototype.slerp
function slerp(a: Cogl.Quaternion, b: Cogl.Quaternion, t: Number(gfloat)): void { // Gjs wrapper for cogl_quaternion_slerp() }
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 Cogl.Quaternion.prototype.nlerp </listitem> </itemizedlist>
- a
The first Cogl.Quaternion
- b
The second Cogl.Quaternion
- t
The factor in the range [0,1] used to interpolate between quaternion a and b.