SetupPerspective

nn::math::MTX44::SetupPerspective Member Function

Syntax

self_type & SetupPerspective(
     f32 fovyRad,
     f32 aspect,
     f32 n,
     f32 f,
     PivotDirection pivot = PIVOT_NONE
);

Parameters

Name Description
in fovyRad Vertical field-of-view angle (in radians).
in aspect Aspect ratio (width/height) of the field of view.
in n Distance to the near clipping plane.
in f Distance to the far clipping plane.
in pivot Direction of the screen rotation.

Return Values

Description

Sets up a projection matrix based on field-of-view angle and aspect ratio.

Revision History

2010/01/29
Initial version.

CONFIDENTIAL