Matrix4x4.CreateViewport Metoda

Definicja

Tworzy macierz widoków praworęcznych na podstawie określonych parametrów.

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

Parametry

x
Single

Współrzędna X w lewym górnym rogu widoku.

y
Single

Współrzędna Y w lewym górnym rogu widoku.

width
Single

Szerokość widoku.

height
Single

Wysokość widoku.

minDepth
Single

Minimalna głębokość widoku.

maxDepth
Single

Wyświetl maksymalną głębokość.

Zwraca

Macierz widoków z prawej strony.

Uwagi

Macierz widoku | szerokość/2 | 0 | 0 | 0 | | 0 | -height / 2 | 0 | 0 | | 0 | 0 | minDepth — maxDepth | 0 | | x + szerokość / 2 | y + wysokość / 2 | minDepth | 1 |

Dotyczy