Method PerspectiveOffCenter
PerspectiveOffCenter(Single, Single, Single, Single, Single, Single)
Returns a float4x4 off-center perspective projection matrix.
Declaration
public static float4x4 PerspectiveOffCenter(float left, float right, float bottom, float top, float near, float far)
Parameters
Type | Name | Description |
---|---|---|
Single | left | The x-coordinate of the left side of the clipping frustum at the near plane. |
Single | right | The x-coordinate of the right side of the clipping frustum at the near plane. |
Single | bottom | The y-coordinate of the bottom side of the clipping frustum at the near plane. |
Single | top | The y-coordinate of the top side of the clipping frustum at the near plane. |
Single | near | Distance to the near plane. Must be greater than zero. |
Single | far | Distance to the far plane. Must be greater than zero. |
Returns
Type | Description |
---|---|
float4x4 | The float4x4 off-center perspective projection matrix. |