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