Matrix4x4.CreatePerspective(Single, Single, Single, Single) 메서드

정의

지정된 보기 볼륨 차원에서 원근 투영 행렬을 만듭니다.

public:
 static System::Numerics::Matrix4x4 CreatePerspective(float width, float height, float nearPlaneDistance, float farPlaneDistance);
public static System.Numerics.Matrix4x4 CreatePerspective (float width, float height, float nearPlaneDistance, float farPlaneDistance);
static member CreatePerspective : single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreatePerspective (width As Single, height As Single, nearPlaneDistance As Single, farPlaneDistance As Single) As Matrix4x4

매개 변수

width
Single

근거리 보기 평면에서 보기 볼륨의 너비입니다.

height
Single

근거리 보기 평면에서 보기 볼륨의 높이입니다.

nearPlaneDistance
Single

근거리 보기 평면까지의 거리입니다.

farPlaneDistance
Single

원거리 보기 평면까지의 거리입니다.

반환

Matrix4x4

원근 투영 행렬입니다.

예외

nearPlaneDistance가 0보다 작거나 같습니다.

또는 farPlaneDistance가 0보다 작거나 같습니다.

또는 nearPlaneDistancefarPlaneDistance보다 크거나 같은 경우

적용 대상