Compartir a través de


Estructura BoundingOrientedBox (directxcollision.h)

Objeto de rectángulo delimitador orientado.

Sintaxis

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;
};

Miembros

CORNER_COUNT

Número de puntos que definen boundingOrientedBox.

Center

Centro de BoundingOrientedBox.

Extents

Extensiones de BoundingOrientedBox.

Orientation

Orientación del BoundingOrientedBox representado como un cuaternión.

void BoundingOrientedBox() noexcept

Crea una instancia de BoundingOrientedBox.

void BoundingOrientedBox( const BoundingOrientedBox & unnamedParam1)

Crea una instancia de BoundingOrientedBox.

BoundingOrientedBox & operator=( const BoundingOrientedBox & unnamedParam1)

Copia valores de otro BoundingOrientedBox.

void BoundingOrientedBox( BoundingOrientedBox && unnamedParam1)

Crea una instancia de BoundingOrientedBox.

BoundingOrientedBox & operator=( BoundingOrientedBox && unnamedParam1)

Copia valores de otro BoundingOrientedBox.

void BoundingOrientedBox( const XMFLOAT3 & center, const XMFLOAT3 & extensiones, const XMFLOAT4 & orientation) noexcept

Crea una instancia de BoundingOrientedBox.

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

Transforma boundingOrientedBox.

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

Transforma boundingOrientedBox.

void GetCorners( XMFLOAT3 *Corners) noexcept

Recupera las esquinas del BoundingOrientedBox.

ContainsmentType XM_CALLCONV Contains( FXMVECTOR Point) noexcept

Comprueba si BoundingOrientedBox contiene un punto especificado.

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

Comprueba si BoundingOrientedBox contiene un triángulo.

ContainsmentType Contains( const BoundingSphere & sh) noexcept

Comprueba si BoundingOrientedBox contiene un BoundingSphere.

ContainsmentType Contains( const BoundingBox & box) noexcept

Comprueba si BoundingOrientedBox contiene un BoundingBox.

ContainsmentType Contains( const BoundingOrientedBox & box) noexcept

Comprueba si BoundingOrientedBox contiene un BoundingOrientedBox.

ContainsmentType Contains( const BoundingFrustum & fr) noexcept

Comprueba si BoundingOrientedBox contiene un BoundingFrustum.

bool Intersects( const BoundingSphere & sh) noexcept

Comprueba boundingOrientedBox para la intersección con boundingSphere.

bool Intersects( const BoundingBox & box) noexcept

Comprueba boundingOrientedBox para la intersección con un BoundingBox.

bool Intersects( const BoundingOrientedBox & box) noexcept

Comprueba boundingOrientedBox para la intersección con boundingOrientedBox.

bool Intersects( const BoundingFrustum & fr) noexcept

Comprueba boundingOrientedBox para la intersección con boundingFrustum.

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

Comprueba boundingOrientedBox para la intersección con un triángulo.

PlaneIntersectionType XM_CALLCONV Intersects( FXMVECTOR Plane) noexcept

Comprueba boundingOrientedBox para la intersección con un plano.

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

Prueba boundingOrientedBox para la intersección con un rayo.

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

Comprueba si BoundingOrientedBox está contenido en un frustum.

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

Crea un BoundingOrientedBox a partir de un BoundingBox.

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

Crea un BoundingOrientedBox a partir de una colección de puntos.

Comentarios

Requisitos de la plataforma

Microsoft Visual Studio 2010 o Microsoft Visual Studio 2012 con Windows SDK para Windows 8. Compatible con aplicaciones de escritorio Win32, aplicaciones de la Tienda Windows y Windows Phone 8 aplicaciones.

Requisitos

   
Encabezado directxcollision.h

Consulte también

Clases de biblioteca directXMath