Condividi tramite


Struttura BoundingFrustum (directxcollision.h)

Oggetto frustum delimitatore.

Sintassi

struct BoundingFrustum {
  size_t                            CORNER_COUNT;
  XMFLOAT3                          Origin;
  XMFLOAT4                          Orientation;
  float                             RightSlope;
  float                             LeftSlope;
  float                             TopSlope;
  float                             BottomSlope;
  float                             Near;
  float                             Far;
  void                              BoundingFrustum() noexcept;
  void                              BoundingFrustum(
    const BoundingFrustum & unnamedParam1
  );
  BoundingFrustum &                 operator=(
    const BoundingFrustum & unnamedParam1
  );
  void                              BoundingFrustum(
    BoundingFrustum && unnamedParam1
  );
  BoundingFrustum &                 operator=(
    BoundingFrustum && unnamedParam1
  );
  void                              BoundingFrustum(
    const XMFLOAT3 & origin,
    const XMFLOAT4 & orientation,
    float            rightSlope,
    float            leftSlope,
    float            topSlope,
    float            bottomSlope,
    float            nearPlane,
    float            farPlane
  ) noexcept;
  void                              BoundingFrustum(
    CXMMATRIX Projection,
    bool      rhcoords
  ) noexcept;
  void XM_CALLCONV                  Transform(
    BoundingFrustum & Out,
    FXMMATRIX         M
  ) noexcept;
  void XM_CALLCONV                  Transform(
    BoundingFrustum & 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 & sp
  ) 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 rayOrigin,
    FXMVECTOR Direction,
    float &   Dist
  ) noexcept;
  ContainmentType XM_CALLCONV       ContainedBy(
    FXMVECTOR Plane0,
    FXMVECTOR Plane1,
    FXMVECTOR Plane2,
    GXMVECTOR Plane3,
    HXMVECTOR Plane4,
    HXMVECTOR Plane5
  ) noexcept;
  void                              GetPlanes(
    XMVECTOR *NearPlane,
    XMVECTOR *FarPlane,
    XMVECTOR *RightPlane,
    XMVECTOR *LeftPlane,
    XMVECTOR *TopPlane,
    XMVECTOR *BottomPlane
  ) noexcept;
  void XM_CALLCONV                  CreateFromMatrix(
    BoundingFrustum & Out,
    FXMMATRIX         Projection,
    bool              rhcoords
  ) noexcept;
};

Members

CORNER_COUNT

Numero di angoli che definiscono boundingFrustum.

Origin

Origine del boundingFrustum.

Orientation

Orientamento del BoundingFrustum rappresentato come quaternione.

RightSlope

Pendenza del lato destro del BoundingFrustum.

LeftSlope

Pendenza del lato sinistro del BoundingFrustum.

TopSlope

Pendenza della parte superiore del BoundingFrustum.

BottomSlope

Pendenza del fondo del BoundingFrustum.

Near

Distanza del piano vicino del BoundingFrustum dalla sua origine.

Far

Distanza del piano lontano dall'origine del BoundingFrustum.

void BoundingFrustum() noexcept

Crea un'istanza di BoundingFrustum.

void BoundingFrustum( const BoundingFrustum & unnamedParam1)

Crea un'istanza di BoundingFrustum.

BoundingFrustum & operator=( const BoundingFrustum & unnamedParam1)

Copia i valori da un altro boundingFrustum.

void BoundingFrustum( BoundingFrustum && unnamedParam1)

Crea un'istanza di BoundingFrustum.

BoundingFrustum & operator=( BoundingFrustum && unnamedParam1)

Copia i valori da un altro boundingFrustum.

void BoundingFrustum( const XMFLOAT3 & origin, const XMFLOAT4 & orientation, float rightSlope, float leftSlope, float topSlope, float bottomSlope, float nearPlane, float farPlane) noexcept

Crea un'istanza di BoundingFrustum.

void BoundingFrustum( CXMMATRIX Projection, bool rhcoords) noexcept

Crea un'istanza di BoundingFrustum da una matrice di proiezione a sinistra. Per altre info, vedi BoundingFrustum::CreateFromMatrix.

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

Trasforma il boundingFrustum dalla matrice di trasformazione specificata.

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

Trasforma boundingFrustum usando i vettori di scala, rotazione e traslazione specificati.

void GetCorners( XMFLOAT3 *Corners) noexcept

Ottiene gli angoli che costituiscono il BoundingFrustum.

ContainmentType XM_CALLCONV Contains( FXMVECTOR Point) noexcept

Verifica se boundingFrustum contiene il punto specificato.

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

Verifica se boundingFrustum contiene il triangolo specificato.

ContainmentType Contains( const BoundingSphere & sp) noexcept

Verifica se BoundingFrustum contiene l'oggetto BoundingSphere specificato.

ContainmentType Contains( const BoundingBox & box) noexcept

Verifica se BoundingFrustum contiene il boundingBox specificato.

ContainmentType Contains( const BoundingOrientedBox & box) noexcept

Verifica se BoundingFrustum contiene l'oggetto BoundingOrientedBox specificato.

ContainmentType Contains( const BoundingFrustum & fr) noexcept

Verifica se boundingFrustum contiene l'oggetto BoundingFrustum specificato.

bool Intersects( const BoundingSphere & sh) noexcept

Testare boundingFrustum per l'intersezione con un boundingSphere.

bool Intersects( const BoundingBox & box) noexcept

Testare boundingFrustum per l'intersezione con un boundingBox.

bool Intersects( const BoundingOrientedBox & box) noexcept

Testare boundingFrustum per l'intersezione con un boundingOrientedBox.

bool Intersects( const BoundingFrustum & fr) noexcept

Testare boundingFrustum per l'intersezione con un altro boundingFrustum.

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

Testare boundingFrustum per l'intersezione con un triangolo.

PlaneIntersectionType XM_CALLCONV Intersects( FXMVECTOR Plane) noexcept

Testare l'oggetto BoundingFrustum per l'intersezione con un piano.

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

Testare il BoundingFrustum 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 boundingFrustum è contenuto nel frustum specificato.

void GetPlanes( XMVECTOR *NearPlane, XMVECTOR *FarPlane, XMVECTOR *RightPlane, XMVECTOR *LeftPlane, XMVECTOR *TopPlane, XMVECTOR *BottomPlane) noexcept

Ottiene i piani che costituiscono il BoundingFrustum.

void XM_CALLCONV CreateFromMatrix( BoundingFrustum & Out, FXMMATRIX Projection, bool rhcoords) noexcept

Crea un boundingFrustum dalla matrice di proiezione prospettica specificata.

Commenti

Requisiti della piattaforma

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

Requisiti

   
Intestazione directxcollision.h

Vedi anche

Classi della libreria DirectXMath