Method Ortho
Ortho(float, float, float, float)
Returns a float4x4 centered orthographic projection matrix.
Declaration
public static float4x4 Ortho(float width, float height, float near, float far)
Parameters
Type | Name | Description |
---|---|---|
float | width | The width of the view volume. |
float | height | The height of the view volume. |
float | near | The distance to the near plane. |
float | far | The distance to the far plane. |
Returns
Type | Description |
---|---|
float4x4 | The float4x4 centered orthographic projection matrix. |