| Matrix44FCreateOrthographicOffCenter Method |
Creates a customized (off-center), right-handed, orthographic projection matrix. (Only
available in the XNA-compatible build.)
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static Matrix44F CreateOrthographicOffCenter(
float left,
float right,
float bottom,
float top,
float zNear,
float zFar
)
Public Shared Function CreateOrthographicOffCenter (
left As Single,
right As Single,
bottom As Single,
top As Single,
zNear As Single,
zFar As Single
) As Matrix44F
public:
static Matrix44F CreateOrthographicOffCenter(
float left,
float right,
float bottom,
float top,
float zNear,
float zFar
)
static member CreateOrthographicOffCenter :
left : float32 *
right : float32 *
bottom : float32 *
top : float32 *
zNear : float32 *
zFar : float32 -> Matrix44F
Parameters
- left
- Type: SystemSingle
The minimum x-value of the view volume. - right
- Type: SystemSingle
The maximum x-value of the view volume. - bottom
- Type: SystemSingle
The minimum y-value of the view volume. - top
- Type: SystemSingle
The maximum y-value of the view volume. - zNear
- Type: SystemSingle
The minimum z-value of the view volume. (Distance of the near view plane.)
- zFar
- Type: SystemSingle
The maximum z-value of the view volume. (Distance of the far view plane.)
Return Value
Type:
Matrix44FThe customized (off-center), right-handed orthographic projection matrix.
Exceptions Exception | Condition |
---|
ArgumentException | left is equal to right,
bottom is equal to top, or
zNear 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