Matrix4x4.CreateOrthographic(Single, Single, Single, Single) Matrix4x4.CreateOrthographic(Single, Single, Single, Single) Matrix4x4.CreateOrthographic(Single, Single, Single, Single) Matrix4x4.CreateOrthographic(Single, Single, Single, Single) Method

Definition

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

public:
 static System::Numerics::Matrix4x4 CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane);
public static System.Numerics.Matrix4x4 CreateOrthographic (float width, float height, float zNearPlane, float zFarPlane);
static member CreateOrthographic : single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreateOrthographic (width As Single, height As Single, zNearPlane As Single, zFarPlane As Single) As Matrix4x4

Parameters

width
Single Single Single Single

The width of the view volume.

height
Single Single Single Single

The height of the view volume.

zNearPlane
Single Single Single Single

The minimum Z-value of the view volume.

zFarPlane
Single Single Single Single

The maximum Z-value of the view volume.

Returns

The orthographic projection matrix.

Applies to