Matrix4x4.CreateViewport 메서드

정의

지정된 매개 변수에서 오른손잡이 뷰포트 행렬을 만듭니다.

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

매개 변수

x
Single

뷰포트 왼쪽 위 모서리의 X 좌표입니다.

y
Single

뷰포트 왼쪽 위 모서리의 Y 좌표입니다.

width
Single

뷰포트 너비입니다.

height
Single

뷰포트 높이.

minDepth
Single

뷰포트 최소 깊이.

maxDepth
Single

뷰포트 최대 깊이.

반환

오른손 뷰포트 매트릭스입니다.

설명

뷰포트 행렬 | width / 2 | 0 | 0 | 0 | | 0 | -height / 2 | 0 | 0 | | 0 | 0 | minDepth - maxDepth | 0 | | x + width / 2 | y + 높이 / 2 | minDepth | 1 |

적용 대상