nn::math::QUATSlerp Function

Syntax

NN_MATH_INLINE QUAT * QUATSlerp(
     QUAT * pOut,
     const QUAT * q1,
     const QUAT * q2,
     f32 t
);

Parameters

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 spherical linear interpolation.
in q2 Pointer to the quaternion that serves as the ending point for spherical linear interpolation.
in t Spherical linear interpolation parameter. The result is q1 when this is 0.0 and q2 when this is 1.0.

Return Values

Returns pOut.

Description

Calculates the spherical linear interpolation between two quaternions.


CONFIDENTIAL