Bagikan melalui


Matrix4x4.CreateViewportLeftHanded Metode

Definisi

Membuat matriks viewport sebelah kiri dari parameter yang ditentukan.

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

Parameter

x
Single

Koordinat X sudut kiri atas viewport.

y
Single

Koordinat Y dari sudut kiri atas viewport.

width
Single

Lebar viewport.

height
Single

Tinggi viewport.

minDepth
Single

Lihatpor kedalaman minimum.

maxDepth
Single

Kedalaman maksimum viewport.

Mengembalikan

Matriks viewport sebelah kiri.

Keterangan

Matriks viewport

| lebar / 2 | 0 | 0 | 0 | | 0 | -tinggi / 2 | 0 | 0 | | 0 | 0 | maxDepth - minDepth | 0 | | x + lebar / 2 | y + tinggi / 2 | minDepth | 1 |

Berlaku untuk