Condividi tramite


Struttura BoundingOrientedBox (directxcollision.h)

Oggetto casella di selezione orientata.

Sintassi

struct BoundingOrientedBox {
  size_t                            CORNER_COUNT;
  XMFLOAT3                          Center;
  XMFLOAT3                          Extents;
  XMFLOAT4                          Orientation;
  void                              BoundingOrientedBox() noexcept;
  void                              BoundingOrientedBox(
    const BoundingOrientedBox & unnamedParam1
  );
  BoundingOrientedBox &             operator=(
    const BoundingOrientedBox & unnamedParam1
  );
  void                              BoundingOrientedBox(
    BoundingOrientedBox && unnamedParam1
  );
  BoundingOrientedBox &             operator=(
    BoundingOrientedBox && unnamedParam1
  );
  void                              BoundingOrientedBox(
    const XMFLOAT3 & center,
    const XMFLOAT3 & extents,
    const XMFLOAT4 & orientation
  ) noexcept;
  void XM_CALLCONV                  Transform(
    BoundingOrientedBox & Out,
    FXMMATRIX             M
  ) noexcept;
  void XM_CALLCONV                  Transform(
    BoundingOrientedBox & Out,
    float                 Scale,
    FXMVECTOR             Rotation,
    FXMVECTOR             Translation
  ) noexcept;
  void                              GetCorners(
    XMFLOAT3 *Corners
  ) noexcept;
  ContainmentType XM_CALLCONV       Contains(
    FXMVECTOR Point
  ) noexcept;
  ContainmentType XM_CALLCONV       Contains(
    FXMVECTOR V0,
    FXMVECTOR V1,
    FXMVECTOR V2
  ) noexcept;
  ContainmentType                   Contains(
    const BoundingSphere & sh
  ) noexcept;
  ContainmentType                   Contains(
    const BoundingBox & box
  ) noexcept;
  ContainmentType                   Contains(
    const BoundingOrientedBox & box
  ) noexcept;
  ContainmentType                   Contains(
    const BoundingFrustum & fr
  ) noexcept;
  bool                              Intersects(
    const BoundingSphere & sh
  ) noexcept;
  bool                              Intersects(
    const BoundingBox & box
  ) noexcept;
  bool                              Intersects(
    const BoundingOrientedBox & box
  ) noexcept;
  bool                              Intersects(
    const BoundingFrustum & fr
  ) noexcept;
  bool XM_CALLCONV                  Intersects(
    FXMVECTOR V0,
    FXMVECTOR V1,
    FXMVECTOR V2
  ) noexcept;
  PlaneIntersectionType XM_CALLCONV Intersects(
    FXMVECTOR Plane
  ) noexcept;
  bool XM_CALLCONV                  Intersects(
    FXMVECTOR Origin,
    FXMVECTOR Direction,
    float &   Dist
  ) noexcept;
  ContainmentType XM_CALLCONV       ContainedBy(
    FXMVECTOR Plane0,
    FXMVECTOR Plane1,
    FXMVECTOR Plane2,
    GXMVECTOR Plane3,
    HXMVECTOR Plane4,
    HXMVECTOR Plane5
  ) noexcept;
  void                              CreateFromBoundingBox(
    BoundingOrientedBox & Out,
    const BoundingBox &   box
  ) noexcept;
  void                              CreateFromPoints(
    BoundingOrientedBox & Out,
    size_t                Count,
    const XMFLOAT3        *pPoints,
    size_t                Stride
  ) noexcept;
};

Members

CORNER_COUNT

Numero di punti che definiscono boundingOrientedBox.

Center

Centro di BoundingOrientedBox.

Extents

Estensioni di BoundingOrientedBox.

Orientation

Orientamento dell'oggetto BoundingOrientedBox rappresentato come quaternione.

void BoundingOrientedBox() noexcept

Crea un'istanza di BoundingOrientedBox.

void BoundingOrientedBox( const BoundingOrientedBox & unnamedParam1)

Crea un'istanza di BoundingOrientedBox.

BoundingOrientedBox & operator=( const BoundingOrientedBox & unnamedParam1)

Copia i valori da un altro boundingOrientedBox.

void BoundingOrientedBox( BoundingOrientedBox && unnamedParam1)

Crea un'istanza di BoundingOrientedBox.

BoundingOrientedBox & operator=( BoundingOrientedBox && unnamedParam1)

Copia i valori da un altro boundingOrientedBox.

void BoundingOrientedBox( const XMFLOAT3 & center, const XMFLOAT3 & extents, const XMFLOAT4 & orientamento) noexcept

Crea un'istanza di BoundingOrientedBox.

void XM_CALLCONV Transform( BoundingOrientedBox & Out, FXMMATRIX M) noexcept

Trasforma l'oggetto BoundingOrientedBox.

void XM_CALLCONV Transform( BoundingOrientedBox & Out, float Scale, FXMVECTOR Rotation, FXMVECTOR Translation) noexcept

Trasforma l'oggetto BoundingOrientedBox.

void GetCorners( XMFLOAT3 *Corner) noexcept

Recupera gli angoli di BoundingOrientedBox.

ContainmentType XM_CALLCONV Contains( FXMVECTOR Point) noexcept

Verifica se l'oggetto BoundingOrientedBox contiene un punto specificato.

ContainmentType XM_CALLCONV Contains( FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) noexcept

Verifica se l'oggetto BoundingOrientedBox contiene un triangolo .

ContainmentType Contains( const BoundingSphere & sh) noexcept

Verifica se l'oggetto BoundingOrientedBox contiene un boundingSphere.

ContainmentType Contains( const BoundingBox & box) noexcept

Verifica se l'oggetto BoundingOrientedBox contiene un boundingBox.

ContainmentType Contains( const BoundingOrientedBox & box) noexcept

Verifica se l'oggetto BoundingOrientedBox contiene un oggetto BoundingOrientedBox.

ContainmentType Contains( const BoundingFrustum & fr) noexcept

Verifica se l'oggetto BoundingOrientedBox contiene un boundingFrustum.

bool Intersects( const BoundingSphere & sh) noexcept

Esegue il test di BoundingOrientedBox per l'intersezione con un boundingSphere.

bool Intersects( const BoundingBox & box) noexcept

Esegue il test di BoundingOrientedBox per l'intersezione con un boundingBox.

bool Intersects( const BoundingOrientedBox & box) noexcept

Esegue il test di BoundingOrientedBox per l'intersezione con un oggetto BoundingOrientedBox.

bool Intersects( const BoundingFrustum & fr) noexcept

Esegue il test di BoundingOrientedBox per l'intersezione con un boundingFrustum.

bool XM_CALLCONV Intersects( FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) noexcept

Verifica il limiteOrientedBox per l'intersezione con un triangolo.

PlaneIntersectionType XM_CALLCONV Intersects( FXMVECTOR Plane) noexcept

Verifica l'oggetto BoundingOrientedBox per l'intersezione con un piano.

bool XM_CALLCONV Intersects( FXMVECTOR Origin, FXMVECTOR Direction, float & Dist) noexcept

Verifica il limiteOrientedBox per l'intersezione con un raggio.

ContainmentType XM_CALLCONV ContainedBy( FXMVECTOR Plane0, FXMVECTOR Plane1, FXMVECTOR Plane2, GXMVECTOR Plane3, HXMVECTOR Plane4, HXMVECTOR Plane5) noexcept

Verifica se boundingOrientedBox è contenuto da un frustum.

void CreateFromBoundingBox( BoundingOrientedBox & Out, const BoundingBox & box) noexcept

Crea un oggetto BoundingOrientedBox da un boundingBox.

void CreateFromPoints( BoundingOrientedBox & Out, size_t Count, const XMFLOAT3 *pPoints, size_t Stride) noexcept

Crea un oggetto BoundingOrientedBox da una raccolta di punti.

Commenti

Requisiti della piattaforma

Microsoft Visual Studio 2010 o Microsoft Visual Studio 2012 con Windows SDK per Windows 8. Supportato per app desktop Win32, app di Windows Store e Windows Phone 8 app.

Requisiti

   
Intestazione directxcollision.h

Vedi anche

Classi di libreria DirectXMath