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

Делите путем


Matrix4x4.CreatePerspectiveLeftHanded(Single, Single, Single, Single) Method

Definition

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

C#
public static System.Numerics.Matrix4x4 CreatePerspectiveLeftHanded(float width, float height, float nearPlaneDistance, float farPlaneDistance);

Parameters

width
Single

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

height
Single

The height 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