nn::math::MTX44PerspectivePivotDeg Function

Syntax

NN_MATH_INLINE MTX44 * MTX44PerspectivePivotDeg(
     MTX44 * pOut,
     f32 fovy,
     f32 aspect,
     f32 n,
     f32 f,
     PivotDirection pivot = PIVOT_NONE
);

Parameters

Name Description
out pOut Pointer to the matrix that stores the projection matrix.
in fovy Vertical field-of-view angle (in degrees).
in aspect Aspect ratio of the field of view (width/height).
in n Distance to the near clipping plane.
in f Distance to the far clipping plane.
in pivot Direction of screen rotation.

Return Values

Returns pOut.

Description

Creates a projection matrix based on a field-of-view angle and an aspect ratio.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL