nn::math::QUATRotAxisRad Function

Syntax

NN_MATH_INLINE QUAT * QUATRotAxisRad(
     QUAT * pOut,
     const VEC3 * axis,
     f32 rad
);

Arguments

Name Description
out pOut Pointer to the resulting quaternion.
in axis Pointer to vector structure holding the components of the axis of rotation. The axis argument does not need to be a unit vector.
in rad Rotation (in radians). Positive values indicate counterclockwise rotation.

Return Values

NONE

Description

Configures a quaternion to perform a rotation around an arbitrary axis defined by the (x, y, z) components of axis.


CONFIDENTIAL