Matrix4x4.CreateViewport Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Skapar en högerhänt vyportmatris från de angivna parametrarna.
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
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 högerhänt visningsport.
Kommentarer
Visningsmatris | bredd /2 | 0 | 0 | 0 | | 0 | -height /2 | 0 | 0 | | 0 | 0 | minDepth – maxDepth | 0 | | x + bredd / 2 | y + höjd / 2 | minDepth | 1 |