nn::math::QUATLerp Function

Syntax

NN_MATH_INLINE QUAT * QUATLerp(
     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 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.

Return Values

Returns pOut.

Description

Calculates the linear interpolation between two quaternions.


CONFIDENTIAL