Share via


Vector3 構造体

[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 空白のトピックは、プレースホルダーとして挿入されています。]

3 次元 (3-D) 空間でベクターを記述および操作します。

名前空間:  Microsoft.WindowsMobile.DirectX
アセンブリ:  Microsoft.WindowsMobile.DirectX (Microsoft.WindowsMobile.DirectX.dll 内)

構文

'宣言
Public Structure Vector3
'使用
Dim instance As Vector3
public struct Vector3
public value class Vector3
[<SealedAttribute>]
type Vector3 =  struct end

Vector3 構造体を使用する方法を次の例に示します。この例は、Windows Software Development Kit (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 フレームワークのシステム要件」を参照してください。

バージョン情報

.NET Compact Framework

サポート対象 : 3.5、2.0

参照

参照

Vector3 メンバー

Microsoft.WindowsMobile.DirectX 名前空間

その他の技術情報

.NET Compact Framework でモバイル Direct3D プログラミング