nn::math::MTX44PerspectiveRad Function

Syntax

NN_MATH_INLINE MTX44 * MTX44PerspectiveRad(
     MTX44 * pOut,
     f32 fovy,
     f32 aspect,
     f32 n,
     f32 f
);

Arguments

Name Description
out pOut Pointer to the matrix that stores the projection matrix.
in fovy Vertical field-of-view angle (in radians).
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.

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