nn::math::QUATSquad Function

Syntax

NN_MATH_INLINE QUAT * QUATSquad(
     QUAT * pOut,
     const QUAT * p,
     const QUAT * a,
     const QUAT * b,
     const QUAT * q,
     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 p, a, b, and/or q.
in p Pointer to the quaternion serving as the starting point for spherical cubic interpolation.
in a Pointer to quaternion used for controlling spherical cubic interpolation.
in b Pointer to quaternion used for controlling spherical cubic interpolation.
in q Pointer to the quaternion serving as the ending point for spherical cubic 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 cubic interpolation between two quaternions.


CONFIDENTIAL