Matrix4x4::CreateOrthographicOffCenter Method

Creates a customized orthographic projection matrix.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
static Matrix4x4 CreateOrthographicOffCenter(
	float left, 
	float right, 
	float bottom, 
	float top, 
	float zNearPlane, 
	float zFarPlane
)

Parameters

left
Type: System::Single

The minimum X-value of the view volume.

right
Type: System::Single

The maximum X-value of the view volume.

bottom
Type: System::Single

The minimum Y-value of the view volume.

top
Type: System::Single

The maximum Y-value of the view volume.

zNearPlane
Type: System::Single

The minimum Z-value of the view volume.

zFarPlane
Type: System::Single

The maximum Z-value of the view volume.

Return Value

Type: System.Numerics::Matrix4x4
The orthographic projection matrix.
Show: