nn::math::QUATLerp Function
NN_MATH_INLINE QUAT * QUATLerp(
QUAT * pOut,
const QUAT *__restrict q1,
const QUAT *__restrict q2,
f32 t
);
| Name | Description | |
|---|---|---|
| out | pOut | Pointer to the buffer that receives the result of the calculation. It is not a problem if this points to the same quaternion as q1 and/or q2. |
| in | q1 | Pointer to the quaternion that serves as the starting point for linear interpolation. |
| in | q2 | Pointer to the quaternion that serves as the ending point for linear interpolation. |
| in | t | Linear interpolation parameter. The result is q1 when this is 0.0 and q2 when this is 1.0. |
Calculates the linear interpolation between two quaternions.
CONFIDENTIAL