Matrix4x4.CreateViewportLeftHanded Metod

Definition

Skapar en vänsterriktad viewport-matris från de angivna parametrarna.

public:
 static System::Numerics::Matrix4x4 CreateViewportLeftHanded(float x, float y, float width, float height, float minDepth, float maxDepth);
public static System.Numerics.Matrix4x4 CreateViewportLeftHanded(float x, float y, float width, float height, float minDepth, float maxDepth);
static member CreateViewportLeftHanded : single * single * single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreateViewportLeftHanded (x As Single, y As Single, width As Single, height As Single, minDepth As Single, maxDepth As Single) As Matrix4x4

Parametrar

x
Single

X-koordinat för visningsportens övre vänstra hörn.

y
Single

Y-koordinaten för visningsportens övre vänstra hörn.

width
Single

Visaportbredd.

height
Single

Visaporthöjd.

minDepth
Single

Visa minsta djup för visning.

maxDepth
Single

Visa maximalt djup.

Returer

Matrisen för vänstervyport.

Kommentarer

Visningsmatris

| bredd /2 | 0 | 0 | 0 | | 0 | -height /2 | 0 | 0 | | 0 | 0 | maxDepth – minDepth | 0 | | x + bredd / 2 | y + höjd / 2 | minDepth | 1 |

Gäller för