nw::math::MTX34LookAtRad Function

Syntax

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

Return Values

Returns pOut.

Description

Sets the camera matrix.


CONFIDENTIAL