संपादित करें

इसके माध्यम से साझा किया गया


Matrix4x4.CreatePerspectiveOffCenter 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

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

right
Single

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

bottom
Single

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

top
Single

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

nearPlaneDistance
Single

The distance to the near view plane.

farPlaneDistance
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.

Applies to