Matrix4x4::CreatePerspectiveOffCenter Method
Creates a customized perspective projection matrix.
Namespace: System.Numerics
Assembly: System.Numerics.Vectors (in System.Numerics.Vectors.dll)
public: static Matrix4x4 CreatePerspectiveOffCenter( float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance )
Parameters
- left
- Type: System::Single
The minimum x-value of the view volume at the near view plane.
- right
- Type: System::Single
The maximum x-value of the view volume at the near view plane.
- bottom
- Type: System::Single
The minimum y-value of the view volume at the near view plane.
- top
- Type: System::Single
The maximum y-value of the view volume at the near view plane.
- nearPlaneDistance
- Type: System::Single
The distance to the near view plane.
- farPlaneDistance
- Type: System::Single
The distance to the far view plane.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | nearPlaneDistance is less than or equal to zero. -or- farPlaneDistance is less than or equal to zero. -or- nearPlaneDistance is greater than or equal to farPlaneDistance. |