Method PerspectiveFov
PerspectiveFov(Single, Single, Single, Single)
Returns a float4x4 perspective projection matrix based on field of view.
Declaration
public static float4x4 PerspectiveFov(float verticalFov, float aspect, float near, float far)
Parameters
Type | Name | Description |
---|---|---|
Single | verticalFov | Vertical Field of view in radians. |
Single | aspect | X:Y aspect ratio. |
Single | near | Distance to near plane. Must be greater than zero. |
Single | far | Distance to far plane. Must be greater than zero. |
Returns
Type | Description |
---|---|
float4x4 | The float4x4 perspective projection matrix. |