Matrix4x4::CreateOrthographic Method

Creates an orthographic perspective matrix from the given view volume dimensions.

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

public:
static Matrix4x4 CreateOrthographic(
	float width, 
	float height, 
	float zNearPlane, 
	float zFarPlane
)

Parameters

width
Type: System::Single

The width of the view volume.

height
Type: System::Single

The height 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: