Matrix4x4.CreateViewport Methode

Definition

Erstellt eine rechtshändige Viewportmatrix aus den angegebenen Parametern.

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

Parameter

x
Single

X-Koordinate des Viewports oben links.

y
Single

Y-Koordinate des Viewports oben links.

width
Single

Viewportbreite.

height
Single

Viewporthöhe.

minDepth
Single

Minimale Viewporttiefe.

maxDepth
Single

Maximale Tiefe des Viewports.

Gibt zurück

Die rechtshändige Viewportmatrix.

Hinweise

Viewportmatrix | width / 2 | 0 | 0 | 0 | | 0 | -höhe / 2 | 0 | 0 | | 0 | 0 | minDepth – maxDepth | 0 | | x + breite / 2 | y + Höhe / 2 | minDepth | 1 |

Gilt für: