Matrix.CreateOrthographicOffCenter Method (Microsoft.Xna.Framework)

Creates a new projection Matrix for customized orthographic view.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.341)
  • C#
  • VB
  • F#
public static void CreateOrthographicOffCenter(
	float left, 
	float right, 
	float bottom, 
	float top, 
	float zNearPlane, 
	float zFarPlane, 
	out Matrix result
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

left
Type: System.Single
Lower x-value at the near plane.
right
Type: System.Single
Upper x-value at the near plane.
bottom
Type: System.Single
Lower y-coordinate at the near plane.
top
Type: System.Single
Upper y-value at the near plane.
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 customized orthographic view as an output parameter.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web