Прочитај на енглеском Уреди

Делите путем


Matrix4x4.CreatePerspectiveOffCenterLeftHanded Method

Definition

Creates a left-handed customized perspective projection matrix.

C#
public static System.Numerics.Matrix4x4 CreatePerspectiveOffCenterLeftHanded(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance);

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 left-handed 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

Производ Верзије
.NET 8, 9, 10