Matrix.CreateOrthographicOffCenter Method (Microsoft.Xna.Framework)
Creates a new projection Matrix for customized orthographic view.
- C#
- VB
- F#
public static Matrix CreateOrthographicOffCenter( Rectangle viewingVolume, float zNearPlane, float zFarPlane )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- viewingVolume
-
Type: Microsoft.Xna.Framework.Rectangle
The viewing volume.
- zNearPlane
-
Type: System.Single
Depth of the near plane.
- zFarPlane
-
Type: System.Single
Depth of the far plane.
Return Value
Type: Microsoft.Xna.Framework.MatrixThe new projection Matrix for customized orthographic view.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web