Microsoft DirectX 8.0 (C++)

D3DXPLANE 拡張機能

D3DXPLANE 構造体で、次の演算子オーバーロードとタイプ キャストを使用可能にする。

#ifdef __cplusplus
public:
    D3DXPLANE() {}
    D3DXPLANE( CONST FLOAT* );
    D3DXPLANE( FLOAT a, FLOAT b, FLOAT c, FLOAT d );

    // キャスティング
    operator FLOAT* ();
    operator CONST FLOAT* () const;

    // 単項演算子
    D3DXPLANE operator + () const;
    D3DXPLANE operator - () const;

    // 2 項演算子
    BOOL operator == ( CONST D3DXPLANE& ) const;
    BOOL operator != ( CONST D3DXPLANE& ) const;

#endif //__cplusplus

動作環境

  ヘッダー : D3dx8math.h で宣言。