다음을 통해 공유


Vector3 구조체

업데이트: 2007년 11월

3차원 공간의 벡터를 설명하고 조작합니다.

네임스페이스:  Microsoft.WindowsMobile.DirectX
어셈블리:  Microsoft.WindowsMobile.DirectX(Microsoft.WindowsMobile.DirectX.dll)

구문

‘선언
Public Structure Vector3
‘사용 방법
Dim instance As Vector3
public struct Vector3
public value class Vector3
JScript에서는 구조체를 사용할 수 있지만 새로 선언할 수는 없습니다.

예제

다음 예제에서는 Vector3 구조체를 사용하는 방법을 보여 줍니다. 이 예제는 Windows SDK(소프트웨어 개발 키트)의 Direct3D 모바일 매트릭스 샘플에서 가져온 것입니다.

' Set up the view matrix. A view matrix can be defined given an eye point,
' a point to lookat, and a direction indicating which way is up. Here, you set
' the eye five units back along the z-axis and up three units, look at the
' origin, and define "up" to be in the y-direction.
device.Transform.View = Matrix.LookAtLH(New Vector3(0.0F, 3.0F, -5.0F), New Vector3(0.0F, 0.0F, 0.0F), New Vector3(0.0F, 1.0F, 0.0F))
// Set up the view matrix. A view matrix can be defined given an eye point,
// a point to look at, and a direction indicating which way is up. Here, you set
// the eye five units back along the z-axis and up three units, look at the
// origin, and define "up" to be in the y-direction.
device.Transform.View = Matrix.LookAtLH(new Vector3(0.0f, 3.0f, -5.0f), new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f));

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

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에서 지원

참고 항목

참조

Vector3 멤버

Microsoft.WindowsMobile.DirectX 네임스페이스

기타 리소스

.NET Compact Framework의 모바일 Direct3D 프로그래밍