次の方法で共有


Transforms.World プロパティ

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

最初のワールド行列を取得または設定します。

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

構文

'宣言
Public Property World As Matrix
    Get
    Set
'使用
Dim instance As Transforms
Dim value As Matrix

value = instance.World

instance.World = value
public Matrix World { get; set; }
public:
property Matrix World {
    Matrix get ();
    void set (Matrix value);
}
member World : Matrix with get, set

プロパティ値

型 : Microsoft.WindowsMobile.DirectX.Matrix
変換を表す Matrix

World プロパティを使用する方法の例を次に示します。これは、「マネージ Direct3D のモバイル サンプル」にあるモバイルの行列のサンプルからの例です。

' For the world matrix, rotate the object about the y-axis.' Set up the rotation matrix to generate one full rotation (2*PI radians) ' every 1000 ms. To avoid the loss of precision inherent in very high ' floating-point numbers, the system time is modulated by the rotation ' period before conversion to a radian angle.Dim iTime AsInteger = Environment.TickCount Mod 1000
Dim fAngle AsSingle = iTime * (2.0F * System.Convert.ToSingle(Math.PI)) / 1000.0F
device.Transform.World = Matrix.RotationY(fAngle)
// For the world matrix, rotate the object about the y-axis.// Set up the rotation matrix to generate one full rotation (2*PI radians)// every 1000 ms. To avoid the loss of precision inherent in very high// floating-point numbers, the system time is modulated by the rotation// period before conversion to a radian angle.int iTime = Environment.TickCount % 1000;
float fAngle = iTime * (2.0f * (float)Math.PI) / 1000.0f;
device.Transform.World = Matrix.RotationY(fAngle);

.NET Framework セキュリティ

プラットフォーム

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET フレームワークのシステム要件」を参照してください。

バージョン情報

.NET Compact Framework

サポート対象 : 3.5、2.0

参照

参照

Transforms クラス

Transforms メンバー

Microsoft.WindowsMobile.DirectX.Direct3D 名前空間