nn::math::MTX34LookAt Function

Syntax

NN_MATH_INLINE MTX34 * MTX34LookAt(
     MTX34 * pOut,
     const VEC3 * pCamPos,
     const VEC3 * pCamUp,
     const VEC3 * pTarget
);

Arguments

Name Description
out pOut Pointer to the buffer that receives the result of the calculation.
in pCamPos Pointer to vector that specifies the camera position.
in pCamUp Pointer to vector that specifies the camera's upward direction.
in pTarget Pointer to the vector that specifies the camera's look-at point.

Return Values

Returns pOut.

Description

Sets the camera matrix.


CONFIDENTIAL