Matrix4x4.CreateViewport Método

Definição

Cria uma matriz de visor destro com base nos parâmetros especificados.

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

Parâmetros

x
Single

Coordenada X do canto superior esquerdo do visor.

y
Single

Coordenada Y do canto superior esquerdo do visor.

width
Single

Largura do visor.

height
Single

Altura do visor.

minDepth
Single

Profundidade mínima do visor.

maxDepth
Single

Profundidade máxima do visor.

Retornos

A matriz do visor destro.

Comentários

Matriz do visor | width /2 | 0 | 0 | 0 | | 0 | -height/2 | 0 | 0 | | 0 | 0 | minDepth - maxDepth | 0 | | x + largura /2 | y + altura / 2 | minDepth | 1 |

Aplica-se a