Partager via


Structure BoundingOrientedBox (directxcollision.h)

Objet de cadre englobant orienté.

Syntaxe

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

Membres

CORNER_COUNT

Nombre de points définissant l’objet BoundingOrientedBox.

Center

Centre de BoundingOrientedBox.

Extents

Étendues de BoundingOrientedBox.

Orientation

Orientation de BoundingOrientedBox représentée sous la forme d’un quaternion.

void BoundingOrientedBox() noexcept

Crée une instance de BoundingOrientedBox.

void BoundingOrientedBox( const BoundingOrientedBox & unnamedParam1)

Crée une instance de BoundingOrientedBox.

BoundingOrientedBox & operator=( const BoundingOrientedBox & unnamedParam1)

Copie les valeurs d’un autre Objet BoundingOrientedBox.

void BoundingOrientedBox( BoundingOrientedBox && unnamedParam1)

Crée une instance de BoundingOrientedBox.

BoundingOrientedBox & operator=( BoundingOrientedBox && unnamedParam1)

Copie les valeurs d’un autre Objet BoundingOrientedBox.

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

Crée une instance de BoundingOrientedBox.

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

Transforme l’objet BoundingOrientedBox.

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

Transforme l’objet BoundingOrientedBox.

void GetCorners( XMFLOAT3 *Corners) noexcept

Récupère les coins de l’objet BoundingOrientedBox.

ContainmentType XM_CALLCONV Contains( FXMVECTOR Point) noexcept

Teste si l’objet BoundingOrientedBox contient un point spécifié.

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

Teste si l’objet BoundingOrientedBox contient un triangle.

ContainmentType Contains( const BoundingSphere & sh) noexcept

Teste si l’objet BoundingOrientedBox contient un objet BoundingSphere.

ContainmentType Contains( const BoundingBox & box) noexcept

Teste si boundingOrientedBox contient un boundingBox.

ContainmentType Contains( const BoundingOrientedBox & box) noexcept

Teste si boundingOrientedBox contient un BoundingOrientedBox.

ContainmentType Contains( const BoundingFrustum & fr) noexcept

Teste si l’objet BoundingOrientedBox contient un objet BoundingFrustum.

bool Intersects( const BoundingSphere & sh) noexcept

Teste BoundingOrientedBox pour l’intersection avec un BoundingSphere.

bool Intersects( const BoundingBox & box) noexcept

Teste BoundingOrientedBox pour l’intersection avec un BoundingBox.

bool Intersects( const BoundingOrientedBox & box) noexcept

Teste BoundingOrientedBox pour l’intersection avec un BoundingOrientedBox.

bool Intersects( const BoundingFrustum & fr) noexcept

Teste BoundingOrientedBox pour l’intersection avec un BoundingFrustum.

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

Teste boundingOrientedBox pour l’intersection avec un triangle.

PlaneIntersectionType XM_CALLCONV Intersects( FXMVECTOR Plane) noexcept

Teste boundingOrientedBox pour l’intersection avec un plan.

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

Teste BoundingOrientedBox pour l’intersection avec un rayon.

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

Teste si l’objet BoundingOrientedBox est contenu par un frustum.

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

Crée un BoundingOrientedBox à partir d’un BoundingBox.

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

Crée un Objet BoundingOrientedBox à partir d’une collection de points.

Remarques

Configuration requise pour la plateforme

Microsoft Visual Studio 2010 ou Microsoft Visual Studio 2012 avec le SDK Windows pour Windows 8. Pris en charge pour les applications de bureau Win32, les applications du Windows Store et les applications Windows Phone 8.

Configuration requise

   
En-tête directxcollision.h

Voir aussi

Classes de bibliothèque DirectXMath