nn::math::MTX44Ortho Function

Syntax

NN_MATH_INLINE MTX44 * MTX44Ortho(
     MTX44 * pOut,
     f32 l,
     f32 r,
     f32 b,
     f32 t,
     f32 n,
     f32 f
);

Arguments

Name Description
out pOut Pointer to the matrix that stores the projection matrix.
in l X-coordinate of the left edge of the viewing frustum at the near clipping plane.
in r X-coordinate of the right edge of the viewing frustum at the near clipping plane.
in b Y-coordinate of the bottom edge of the viewing frustum at the near clipping plane.
in t Y-coordinate of the top edge of the viewing frustum at the near clipping plane.
in n Distance to the near clipping plane.
in f Distance to the far clipping plane.

Return Values

Returns pOut.

Description

Creates an orthographic projection matrix.

Note: The order of the arguments follows the OpenGL standard.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL