Matrix4.CreateOrthographic Method

Definition

Overloads

CreateOrthographic(Single, Single, Single, Single, Matrix4)

Creates an orthographic projection matrix.

CreateOrthographic(Single, Single, Single, Single)

CreateOrthographic(Single, Single, Single, Single, Matrix4)

Creates an orthographic projection matrix.

public static void CreateOrthographic (float width, float height, float zNear, float zFar, out OpenTK.Matrix4 result);
static member CreateOrthographic : single * single * single * single *  -> unit

Parameters

width
Single

The width of the projection volume.

height
Single

The height of the projection volume.

zNear
Single

The near edge of the projection volume.

zFar
Single

The far edge of the projection volume.

result
Matrix4

The resulting Matrix4 instance.

Applies to

CreateOrthographic(Single, Single, Single, Single)

public static OpenTK.Matrix4 CreateOrthographic (float width, float height, float zNear, float zFar);
static member CreateOrthographic : single * single * single * single -> OpenTK.Matrix4

Parameters

width
Single
height
Single
zNear
Single
zFar
Single

Returns

Applies to