[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.PerspectiveOffCenter

PerspectiveOffCenter Method

PerspectiveOffCenter(float, float, float, float, float, float)

Creates a customized perspective projection matrix.

Declaration
public static Matrix4x4 PerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance)
Parameters
Type Name Description
float left

The minimum x-value of the view volume at the near view plane.

float right

The maximum x-value of the view volume at the near view plane.

float bottom

The minimum y-value of the view volume at the near view plane.

float top

The maximum y-value 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.