Matrix4x4.CreatePerspectiveLeftHanded(Single, Single, Single, Single) Metod

Definition

Skapar en vänsterriktad perspektivprojektionsmatris från de angivna vyvolymdimensionerna.

public:
 static System::Numerics::Matrix4x4 CreatePerspectiveLeftHanded(float width, float height, float nearPlaneDistance, float farPlaneDistance);
public static System.Numerics.Matrix4x4 CreatePerspectiveLeftHanded(float width, float height, float nearPlaneDistance, float farPlaneDistance);
static member CreatePerspectiveLeftHanded : single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreatePerspectiveLeftHanded (width As Single, height As Single, nearPlaneDistance As Single, farPlaneDistance As Single) As Matrix4x4

Parametrar

width
Single

Bredden på visningsvolymen på planet nära vyn.

height
Single

Höjden på visningsvolymen på planet nära vyn.

nearPlaneDistance
Single

Avståndet till det närliggande planet.

farPlaneDistance
Single

Avståndet till det fjärransiktsplanet.

Returer

Den vänstra perspektivprojektionsmatrisen.

Undantag

nearPlaneDistance är mindre än eller lika med noll.

-eller-

farPlaneDistance är mindre än eller lika med noll.

-eller-

nearPlaneDistance är större än eller lika med farPlaneDistance.

Gäller för