Matrix4x4.CreateViewport Metod

Definition

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 |

Gäller för