Matrix.CreateOrthographic Method (Microsoft.Xna.Framework)
Creates a new projection Matrix for orthographic view.
- C#
- VB
- F#
public static void CreateOrthographic( float width, float height, float zNearPlane, float zFarPlane, out Matrix result )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- width
-
Type: System.Single
Width of the viewing volume.
- height
-
Type: System.Single
Height of the viewing volume.
- zNearPlane
-
Type: System.Single
Depth of the near plane.
- zFarPlane
-
Type: System.Single
Depth of the far plane.
- result
-
Type: out Microsoft.Xna.Framework.Matrix
The new projection Matrix for orthographic view as an output parameter.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web