nn::math::VEC3TransformCoord Function

Syntax

NN_MATH_INLINE VEC3 * VEC3TransformCoord(
     VEC3 * pOut,
     const MTX44 * pM,
     const VEC3 * pV
);

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 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. After calculation, the first, second, and third elements are divided by the fourth element to create a three-dimensional vector that is stored in pOut.


CONFIDENTIAL