PerspectiveOffCenter(float, float, float, float, float, float)
Returns a float4x4 off-center perspective projection matrix.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
public static float4x4 PerspectiveOffCenter(float left, float right, float bottom, float top, float near, float far)
Parameters
The x-coordinate of the left side of the clipping frustum at the near plane.
The x-coordinate of the right side of the clipping frustum at the near plane.
The y-coordinate of the bottom side of the clipping frustum at the near plane.
The y-coordinate of the top side of the clipping frustum at the near plane.
Distance to the near plane. Must be greater than zero.
Distance to the far plane. Must be greater than zero.
Returns
Type | Description |
|---|---|
| float4x4 | The float4x4 off-center perspective projection matrix. |