Matrix44DCreatePerspective Method |
Namespace: DigitalRune.Mathematics.Algebra
public static Matrix44D CreatePerspective( double width, double height, double zNear, double zFar )
Exception | Condition |
---|---|
ArgumentOutOfRangeException | A parameter is negative or 0. |
ArgumentException | zNear is greater than or equal to zFar. |
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).
Infinite Projections:
zFar can be set to PositiveInfinity to create an
infinite projection where the far clip plane is at infinity.