Luna::Quaternion::slerp
Float4 slerp(const Float4 &q1, const Float4 &q2, f32 t)
Performs spherical interpolation between two quaternions.
Parameters
-
in q1
The first quaternion.
-
in q2
The second quaternion.
-
in t
The interpolation weight.
0
to chooseq1
,1
to chooseq2
.
Return value
Returns the result quaternion.