[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.PerspectiveFieldOfView

PerspectiveFieldOfView Method

PerspectiveFieldOfView(float, float, float, float)

Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.

Declaration
public static Matrix4x4 PerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance)
Parameters
Type Name Description
float fieldOfView

The field of view in the y direction, in radians.

float aspectRatio

The aspect ratio, defined as view space width divided by height.

float nearPlaneDistance

The distance to the near view plane.

float farPlaneDistance

The distance to the far view plane.

Returns
Type Description
Matrix4x4

The perspective projection matrix.