nn::math::MTX34LookAt Function

Syntax

NN_FORCE_INLINE MTX34 * MTX34LookAt(
     MTX34 * pOut,
     const VEC3 * pCamPos,
     f32 twistDeg,
     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 twistDeg Angle of rotation around the camera's line of sight. In units of degrees.
in pTarget Pointer to the vector that specifies the camera's look-at point.

Return Values

Returns pOut.

Description

Sets the camera matrix.


CONFIDENTIAL