Compartir a través de


Estructura BoundingSphere (directxcollision.h)

Objeto de esfera delimitador.

Sintaxis

struct BoundingSphere {
  XMFLOAT3                          Center;
  float                             Radius;
  void                              BoundingSphere() noexcept;
  void                              BoundingSphere(
    const BoundingSphere & unnamedParam1
  );
  BoundingSphere &                  operator=(
    const BoundingSphere & unnamedParam1
  );
  void                              BoundingSphere(
    BoundingSphere && unnamedParam1
  );
  BoundingSphere &                  operator=(
    BoundingSphere && unnamedParam1
  );
  void                              BoundingSphere(
    const XMFLOAT3 & center,
    float            radius
  ) noexcept;
  void XM_CALLCONV                  Transform(
    BoundingSphere & Out,
    FXMMATRIX        M
  ) noexcept;
  void XM_CALLCONV                  Transform(
    BoundingSphere & Out,
    float            Scale,
    FXMVECTOR        Rotation,
    FXMVECTOR        Translation
  ) 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                              CreateMerged(
    BoundingSphere &       Out,
    const BoundingSphere & S1,
    const BoundingSphere & S2
  ) noexcept;
  void                              CreateFromBoundingBox(
    BoundingSphere &    Out,
    const BoundingBox & box
  ) noexcept;
  void                              CreateFromBoundingBox(
    BoundingSphere &            Out,
    const BoundingOrientedBox & box
  ) noexcept;
  void                              CreateFromPoints(
    BoundingSphere & Out,
    size_t           Count,
    const XMFLOAT3   *pPoints,
    size_t           Stride
  ) noexcept;
  void                              CreateFromFrustum(
    BoundingSphere &        Out,
    const BoundingFrustum & fr
  ) noexcept;
};

Miembros

Center

Centro de BoundingSphere.

Radius

Radio de BoundingSphere.

void BoundingSphere() noexcept

Crea una instancia de la clase BoundingSphere .

void BoundingSphere( const BoundingSphere & unnamedParam1)

Crea una instancia de la clase BoundingSphere.

BoundingSphere & operator=( const BoundingSphere & unnamedParam1)

Inicializa BoundingSphere con valores de boundingSphere especificados.

void BoundingSphere( BoundingSphere && unnamedParam1)

BoundingSphere & operator=( BoundingSphere && unnamedParam1)

Inicializa BoundingSphere con valores de boundingSphere especificados.

void BoundingSphere( const XMFLOAT3 & center, float radius) noexcept

Crea una instancia de la clase BoundingSphere.

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

Transforma BoundingSphere.

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

Transforma BoundingSphere mediante los vectores de escala, rotación y traducción especificados.

ContainsmentType XM_CALLCONV Contains( FXMVECTOR Point) noexcept

Comprueba si BoundingSphere contiene un punto especificado.

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

Comprueba si BoundingSphere contiene un triángulo especificado.

ContainsmentType Contains( const BoundingSphere & sh) noexcept

Comprueba si BoundingSphere contiene un BoundingSphere especificado.

ContainsmentType Contains( const BoundingBox & box) noexcept

Comprueba si BoundingSphere contiene un BoundingBox especificado.

ContainsmentType Contains( const BoundingOrientedBox & box) noexcept

Comprueba si BoundingSphere contiene el BoundingOrientedBox especificado.

ContainsmentType Contains( const BoundingFrustum & fr) noexcept

Comprueba si BoundingSphere contiene el BoundingFrustum especificado.

bool Intersects( const BoundingSphere & sh) noexcept

Comprueba la intersección de BoundingSphere con boundingSphere.

bool Intersects( const BoundingBox & box) noexcept

Comprueba la intersección de BoundingSphere con un BoundingBox.

bool Intersects( const BoundingOrientedBox & box) noexcept

Pruebe boundingSphere para la intersección con boundingOrientedBox.

bool Intersects( const BoundingFrustum & fr) noexcept

Pruebe boundingSphere para la intersección con boundingFrustum.

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

Comprueba la intersección de BoundingSphere con un triángulo.

PlaneIntersectionType XM_CALLCONV Intersects( FXMVECTOR Plane) noexcept

Comprueba la intersección de BoundingSphere con un plano.

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

Comprueba la intersección de BoundingSphere con un rayo.

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

Comprueba si BoundingSphere está contenido en el frustum especificado.

void CreateMerged( BoundingSphere & Out, const BoundingSphere & S1, const BoundingSphere & S2) noexcept

Crea un BoundingSphere que contiene los dos objetos BoundingSphere especificados.

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

Crea un BoundingSphere que contiene el BoundingBox especificado.

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

Crea un BoundingSphere que contiene el BoundingBox especificado.

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

Crea un nuevo BoundingSphere a partir de una lista de puntos.

void CreateFromFrustum( BoundingSphere & Out, const BoundingFrustum & fr) noexcept

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