Share via


Vector3Fixed 構造体

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

3 次元 (3-D) 空間のベクターを表します。

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

構文

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

解説

このクラスは、固定小数点演算のために用意されています。

Vector3Fixed 構造体を使用する方法を次のコード例に示します。

    ' This example is taken from the    ' Direct3D Mobile Fixed Point Lighting Sample    ' of the .NET Compact Framework Samples in the SDK.SelectCase device.LightsFixed(2).Type
        Case LightType.Point
            device.LightsFixed(2).Position = New Vector3Fixed(4.5F * x, 4.5F * y, 4.5F * z)
            device.LightsFixed(2).Attenuation1 = 0.4F
        Case LightType.Directional
            device.LightsFixed(2).Direction = New Vector3Fixed(x, y, z)
    EndSelect
    device.LightsFixed(2).Update()
EndSub
// This example is taken from the// Direct3D Mobile Fixed Point Lighting Sample// of the .NET Compact Framework Samples in the SDK.switch(device.LightsFixed[2].Type)
    {
        case LightType.Point:
            device.LightsFixed[2].Position =
                new Vector3Fixed(4.5f * x, 4.5f * y, 4.5f * z);
            device.LightsFixed[2].Attenuation1  = 0.4f;
            break;
        case LightType.Directional:
            device.LightsFixed[2].Direction =
                new Vector3Fixed(x, y, z);
            break;
    }
        device.LightsFixed[2].Update();

スレッド セーフ

この型のすべてのパブリック 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

参照

参照

Vector3Fixed メンバー

Microsoft.WindowsMobile.DirectX.Direct3D 名前空間

その他の技術情報

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