# Matrix4x4.CreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single)Matrix4x4.CreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single)Matrix4x4.CreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single)Matrix4x4.CreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single) Method

## Definition

Creates a customized perspective projection matrix.

``````public:
static System::Numerics::Matrix4x4 CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance);``````
``public static System.Numerics.Matrix4x4 CreatePerspectiveOffCenter (float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance);``
``static member CreatePerspectiveOffCenter : single * single * single * single * single * single -> System.Numerics.Matrix4x4``
``Public Shared Function CreatePerspectiveOffCenter (left As Single, right As Single, bottom As Single, top As Single, nearPlaneDistance As Single, farPlaneDistance As Single) As Matrix4x4``

#### Parameters

left
Single Single Single Single

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

right
Single Single Single Single

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

bottom
Single Single Single Single

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

top
Single Single Single Single

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

nearPlaneDistance
Single Single Single Single

The distance to the near view plane.

farPlaneDistance
Single Single Single Single

The distance to the far view plane.

#### Returns

The perspective projection matrix.

#### Exceptions

`nearPlaneDistance` is less than or equal to zero.

-or-

`farPlaneDistance` is less than or equal to zero.

-or-

`nearPlaneDistance` is greater than or equal to `farPlaneDistance`.