nn::math::VEC3Transform Function

Syntax

NN_FORCE_INLINE VEC3 * VEC3Transform(
     VEC3 * pOut,
     const MTX34 *__restrict pM,
     const VEC3 *__restrict pV
);

Arguments

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 vector as pV.
in pM Pointer to the transformation matrix.
in pV Pointer to the original vector.

Return Values

Returns pOut.

Description

Transforms a vector using a matrix. The fourth element of the vector is taken as 1 during calculation.


CONFIDENTIAL