Export (0) Print
Expand All

Matrix.CreateOrthographicOffCenter Method (Single, Single, Single, Single, Single, Single, Matrix)

Builds a customized, orthogonal projection matrix.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public static void CreateOrthographicOffCenter (
         float left,
         float right,
         float bottom,
         float top,
         float zNearPlane,
         float zFarPlane,
         out Matrix result
)

Parameters

left
Minimum x-value of the view volume.
right
Maximum x-value of the view volume.
bottom
Minimum y-value of the view volume.
top
Maximum y-value of the view volume.
zNearPlane
Minimum z-value of the view volume.
zFarPlane
Maximum z-value of the view volume.
result
[OutAttribute] The projection matrix.

Projection space refers to the space after applying projection transformation from view space. After the projection transformation, visible content has X and Y coordinates ranging from -1 to 1, and Z coordinate ranging from 0 to 1.

Unlike perspective projection, in orthographic projection there is no perspective foreshortening.

Xbox 360, Windows XP SP2, Windows Vista

Show:
© 2014 Microsoft