Matrix.PerspectiveFovLH 메서드
업데이트: 2007년 11월
뷰 필드를 기준으로 왼쪽 원근 프로젝션 매트릭스를 만듭니다.
네임스페이스: Microsoft.WindowsMobile.DirectX
어셈블리: Microsoft.WindowsMobile.DirectX(Microsoft.WindowsMobile.DirectX.dll)
구문
‘선언
Public Shared Function PerspectiveFovLH ( _
fieldOfViewY As Single, _
aspectRatio As Single, _
znearPlane As Single, _
zfarPlane As Single _
) As Matrix
‘사용 방법
Dim fieldOfViewY As Single
Dim aspectRatio As Single
Dim znearPlane As Single
Dim zfarPlane As Single
Dim returnValue As Matrix
returnValue = Matrix.PerspectiveFovLH(fieldOfViewY, _
aspectRatio, znearPlane, zfarPlane)
public static Matrix PerspectiveFovLH(
float fieldOfViewY,
float aspectRatio,
float znearPlane,
float zfarPlane
)
public:
static Matrix PerspectiveFovLH(
float fieldOfViewY,
float aspectRatio,
float znearPlane,
float zfarPlane
)
public static function PerspectiveFovLH(
fieldOfViewY : float,
aspectRatio : float,
znearPlane : float,
zfarPlane : float
) : Matrix
매개 변수
fieldOfViewY
형식: System.Single라디안 단위의 y 방향 뷰 필드입니다.
aspectRatio
형식: System.Single높이로 나눈 뷰 공간 너비로 정의된 가로 세로 비율입니다.
znearPlane
형식: System.Single근접 뷰 평면의 Z-값입니다.
zfarPlane
형식: System.Single원격 뷰 평면의 Z-값입니다.
반환 값
형식: Microsoft.WindowsMobile.DirectX.Matrix
왼쪽 원근 프로젝션 매트릭스인 Matrix 구조체입니다.
예제
다음 예제에서는 PerspectiveFovLH 메서드를 사용하는 방법을 보여 줍니다. 이 예제는 Windows SDK(소프트웨어 개발 키트)의 Direct3D 모바일 매트릭스 샘플에서 가져온 것입니다.
' For the projection matrix, set up a perspective transform (which
' transforms geometry from 3-D view space to 2-D viewport space, with
' a perspective divide making objects smaller in the distance). To build
' a perspective transform, you need the field of view (1/4 PI is common),
' the aspect ratio, and the near and far clipping planes (which define
' the distances at which geometry should no longer be rendered).
device.Transform.Projection = Matrix.PerspectiveFovLH(System.Convert.ToSingle(Math.PI) / 4, 1.0F, 1.0F, 100.0F)
// For the projection matrix, set up a perspective transform (which
// transforms geometry from 3-D view space to 2-D viewport space, with
// a perspective divide making objects smaller in the distance). To build
// a perspective transform, you need the field of view (1/4 PI is common),
// the aspect ratio, and the near and far clipping planes (which define
// the distances at which geometry should no longer be rendered).
device.Transform.Projection = Matrix.PerspectiveFovLH((float)Math.PI / 4, 1.0f, 1.0f, 100.0f);
권한
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.
플랫폼
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Compact Framework
3.5, 2.0에서 지원