Click or drag to resize
DigitalRuneMatrix44DCreateOrthographic Method
Creates a right-handed, orthographic projection matrix. (Only available in the XNA compatible build.)

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static Matrix44D CreateOrthographic(
	double width,
	double height,
	double zNear,
	double zFar
)

Parameters

width
Type: SystemDouble
The width of the view volume.
height
Type: SystemDouble
The height of the view volume.
zNear
Type: SystemDouble
The minimum z-value of the view volume. (Distance of the near view plane.)
zFar
Type: SystemDouble
The maximum z-value of the view volume. (Distance of the far view plane.)

Return Value

Type: Matrix44D
The right-handed orthographic projection matrix.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionwidth or height is 0.
ArgumentExceptionzNear is greater than or equal to zFar.
Remarks

This method is available only in the XNA-compatible build of the DigitalRune.Mathematics.dll.

In contrast to all preceding coordinate spaces (model space, world space, view space) the projection space is left-handed! This is necessary because DirectX uses a left-handed clip space.

In the projection space the x and y-coordinates range from −1 to 1, and the z-coordinates range from 0 (near) to 1 (far).

See Also