Matrix4x4.CreateViewport Yöntem

Tanım

Belirtilen parametrelerden sağ elle kullanılan bir görünüm penceresi matrisi oluşturur.

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

Parametreler

x
Single

Sol üst köşedeki görünüm penceresi X koordinatı.

y
Single

Sol üst köşedeki görünüm penceresi Y koordinatı.

width
Single

Görünüm penceresi genişliği.

height
Single

Görünüm penceresi yüksekliği.

minDepth
Single

Görünüm penceresi en düşük derinlik.

maxDepth
Single

Görünüm penceresi maksimum derinlik.

Döndürülenler

Sağ elle kullanılan görünüm penceresi matrisi.

Açıklamalar

Görünüm penceresi matrisi | genişlik / 2 | 0 | 0 | 0 | | 0 | -height / 2 | 0 | 0 | | 0 | 0 | minDepth - maxDepth | 0 | | x + genişlik / 2 | y + height / 2 | minDepth | 1 |

Şunlara uygulanır