D3DXPLANE 擴充功能

注意

D3DX 公用程式程式庫已被取代。 建議您改用 DirectXMath

D3DXPLANE 結構提供下列運算子多載和類型轉換。

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

    // casting
    operator FLOAT* ();
    operator CONST FLOAT* () const;

    // assignment operators
    D3DXPLANE& operator *= ( FLOAT );
    D3DXPLANE& operator /= ( FLOAT );

    // unary operators
    D3DXPLANE operator + () const;
    D3DXPLANE operator - () const;

    // binary operators
    D3DXPLANE operator * ( FLOAT ) const;
    D3DXPLANE operator / ( FLOAT ) const;

    friend D3DXPLANE operator * ( FLOAT, CONST D3DXPLANE& );

    BOOL operator == ( CONST D3DXPLANE& ) const;
    BOOL operator != ( CONST D3DXPLANE& ) const;

#endif //__cplusplus
    FLOAT a, b, c, d;
} D3DXPLANE, *LPD3DXPLANE;

衍生類型:*LPD3DXPLANE

備註

如需結構成員的詳細資訊,請參閱 D3DXPLANE

此結構的運算子多載和類型轉換是在 d3dx9math.inl 中實作。

規格需求

需求
標頭
D3dx9math.h

另請參閱

D3DX 結構