Vector3-Struktur

Dieser Dokumentation für die Vorschau nur ist und in späteren Versionen geändert. Leere Themen wurden als Platzhalter eingefügt.]

Beschreibt und bearbeitet einen Vektor im dreidimensionalen (3D) Raum.

Namespace:  Microsoft.WindowsMobile.DirectX
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Structure Vector3
'Usage
Dim instance As Vector3
public struct Vector3
public value class Vector3
[<SealedAttribute>]
type Vector3 =  struct end

Beispiele

Das folgende Beispiel veranschaulicht eine Struktur Vector3 verwenden.In diesem Beispiel wird für Direct3D Mobile Matrizen im Windows Software Development Kit (SDK) entnommen.

' 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));

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Plattformen

Windows CE, Windows Mobile für Smartphone, Windows Mobile für Pocket PC

Die .NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET framework.

Versionsinformationen

.NET Compact Framework

Unterstützt in: 3.5, 2.0

Siehe auch

Referenz

Member Vector3

Microsoft.WindowsMobile.DirectX-Namespace

Weitere Ressourcen

Mobile Direct3D-Programmierung in .NET Compact Framework