[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.Perspective

Perspective Method

Perspective(float, float, float, float)

Creates a perspective projection matrix from the given view volume dimensions.

Declaration
public static Matrix4x4 Perspective(float width, float height, float nearPlaneDistance, float farPlaneDistance)
Parameters
Type Name Description
float width

The width of the view volume at the near view plane.

float height

The height of the view volume at the near view plane.

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.