Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ein orientiertes Begrenzungsrahmenobjekt.
Syntax
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;
};
Member
CORNER_COUNT
Die Anzahl der Punkte, die das BoundingOrientedBox definieren.
Center
Die Mitte des BoundingOrientedBox-Steuerelements.
Extents
Die Blöcke des BoundingOrientedBox.The extents of the BoundingOrientedBox.
Orientation
Die Ausrichtung des Als Quaternion dargestellten BoundingOrientedBox.The orientation of the BoundingOrientedBox represented as a quaternion.
void BoundingOrientedBox() noexcept
Erstellt eine instance von BoundingOrientedBox.
void BoundingOrientedBox( const BoundingOrientedBox & unnamedParam1)
Erstellt eine instance von BoundingOrientedBox.
BoundingOrientedBox & operator=( const BoundingOrientedBox & unnamedParam1)
Kopiert Werte aus einem anderen BoundingOrientedBox-Objekt.
void BoundingOrientedBox( BoundingOrientedBox && unnamedParam1)
Erstellt eine instance von BoundingOrientedBox.
BoundingOrientedBox & operator=( BoundingOrientedBox && unnamedParam1)
Kopiert Werte aus einem anderen BoundingOrientedBox-Objekt.
Erstellt eine instance von BoundingOrientedBox.
void XM_CALLCONV Transform( BoundingOrientedBox & Out, FXMMATRIX M) noexcept
Transformiert das BoundingOrientedBox-Objekt.
Transformiert das BoundingOrientedBox-Objekt.
void GetCorners( XMFLOAT3 *Ecken) noexcept
Ruft die Ecken des BoundingOrientedBox ab.
ContainmentType XM_CALLCONV Contains( FXMVECTOR Point) noexcept
Testet, ob das BoundingOrientedBox einen angegebenen Punkt enthält.
ContainmentType XM_CALLCONV Contains( FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) noexcept
Testet, ob das BoundingOrientedBox-Objekt ein Dreieck enthält.
ContainmentType Contains( const BoundingSphere & sh) noexcept
Testet, ob boundingOrientedBox eine BoundingSphere enthält.
ContainmentType Contains( const BoundingBox & Box) noexcept
Testet, ob das BoundingOrientedBox-Element ein BoundingBox-Element enthält.
ContainmentType Contains( const BoundingOrientedBox & Feld) noexcept
Testet, ob boundingOrientedBox ein BoundingOrientedBox enthält.
ContainmentType Contains( const BoundingFrustum & fr) noexcept
Testet, ob boundingOrientedBox ein BoundingFrustum enthält.
bool Intersects( const BoundingSphere & sh) noexcept
Testet das BoundingOrientedBox-Objekt auf Schnittmenge mit einer BoundingSphere.The BoundingOrientedBox for intersection with a BoundingSphere.
bool Intersects( const BoundingBox & Box) noexcept
Testet das BoundingOrientedBox-Objekt auf Schnittmenge mit einem BoundingBox-Element.
bool Intersects( const BoundingOrientedBox & Box) noexcept
Testet das BoundingOrientedBox-Objekt auf Schnittmenge mit einem BoundingOrientedBox-Objekt.
bool Intersects( const BoundingFrustum & fr) noexcept
Testet das BoundingOrientedBox auf Schnittmenge mit einem BoundingFrustum.
bool XM_CALLCONV Intersects( FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) noexcept
Testet das BoundingOrientedBox-Element auf Schnittmenge mit einem Dreieck.
PlaneIntersectionType XM_CALLCONV Intersects( FXMVECTOR-Ebene) noexcept
Testet das BoundingOrientedBox-Element auf Schnittmenge mit einer Ebene.
bool XM_CALLCONV Intersects( FXMVECTOR Origin, FXMVECTOR Direction, float & Dist) noexcept
Testet das BoundingOrientedBox auf Schnittmenge mit einem Strahl.
Testet, ob das BoundingOrientedBox-Element in einem Frustum enthalten ist.
void CreateFromBoundingBox( BoundingOrientedBox & Out, const BoundingBox & Box) noexcept
Erstellt ein BoundingOrientedBox-Objekt aus einem BoundingBox-Objekt.
Erstellt ein BoundingOrientedBox-Element aus einer Auflistung von Punkten.
Hinweise
Plattformanforderungen
Microsoft Visual Studio 2010 oder Microsoft Visual Studio 2012 mit dem Windows SDK für Windows 8. Unterstützt für Win32-Desktop-Apps, Windows Store-Apps und Windows Phone 8-Apps.Anforderungen
| Kopfzeile | directxcollision.h |