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 umgebendes Kugelobjekt.
Syntax
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;
};
Member
Center
Die Mitte der Begrenzungssphäre.
Radius
Der Radius der Begrenzungssphäre.
void BoundingSphere() noexcept
Erstellt eine instance der BoundingSphere-Klasse.
void BoundingSphere( const BoundingSphere & unnamedParam1)
Erstellt eine instance der BoundingSphere-Klasse.
BoundingSphere & operator=( const BoundingSphere & unnamedParam1)
Initialisiert die BoundingSphere mit Werten aus einer angegebenen BoundingSphere.
void BoundingSphere( BoundingSphere && unnamedParam1)
BoundingSphere & operator=( BoundingSphere && unnamedParam1)
Initialisiert die BoundingSphere mit Werten aus einer angegebenen BoundingSphere.
void BoundingSphere( const XMFLOAT3 & center, float radius) noexcept
Erstellt eine instance der BoundingSphere-Klasse.
void XM_CALLCONV Transform( BoundingSphere & Out, FXMMATRIX M) noexcept
Transformiert die BoundingSphere.
Transformiert die BoundingSphere mithilfe der angegebenen Skalierungs-, Rotations- und Übersetzungsvektoren.
ContainmentType XM_CALLCONV Contains( FXMVECTOR Point) noexcept
Testet, ob die BoundingSphere einen angegebenen Punkt enthält.
ContainmentType XM_CALLCONV Contains( FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) noexcept
Testet, ob die BoundingSphere ein angegebenes Dreieck enthält.
ContainmentType Contains( const BoundingSphere & sh) noexcept
Testet, ob die BoundingSphere eine angegebene BoundingSphere enthält.
ContainmentType Contains( const BoundingBox & Box) noexcept
Testet, ob die BoundingSphere ein angegebenes BoundingBox enthält.
ContainmentType Contains( const BoundingOrientedBox & Feld) noexcept
Testet, ob boundingSphere das angegebene BoundingOrientedBox enthält.
ContainmentType Contains( const BoundingFrustum & fr) noexcept
Testet, ob die BoundingSphere das angegebene BoundingFrustum enthält.
bool Intersects( const BoundingSphere & sh) noexcept
Testet die BoundingSphere auf Schnittmenge mit einer BoundingSphere.The BoundingSphere for intersection with a BoundingSphere.
bool Intersects( const BoundingBox & Box) noexcept
Testet die BoundingSphere auf Schnittmenge mit einem BoundingBox-Objekt.
bool Intersects( const BoundingOrientedBox & Box) noexcept
Testen Sie die BoundingSphere auf Schnittmenge mit einem BoundingOrientedBox-Objekt.
bool Intersects( const BoundingFrustum & fr) noexcept
Testen Sie die BoundingSphere auf Schnittmenge mit einem BoundingFrustum.
bool XM_CALLCONV Intersects( FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) noexcept
Testet die BoundingSphere auf Schnittmenge mit einem Dreieck.
PlaneIntersectionType XM_CALLCONV Intersects( FXMVECTOR-Ebene) noexcept
Testet die BoundingSphere auf Schnittmenge mit einer Ebene.
bool XM_CALLCONV Intersects( FXMVECTOR Origin, FXMVECTOR Direction, float & Dist) noexcept
Testet die Begrenzungssphäre auf Schnittmenge mit einem Strahl.
Testet, ob die BoundingSphere im angegebenen Frustum enthalten ist.
Erstellt eine BoundingSphere, die die beiden angegebenen BoundingSphere-Objekte enthält.
void CreateFromBoundingBox( BoundingSphere & Out, const BoundingBox & box) noexcept
Erstellt eine BoundingSphere-Instanz, die das angegebene BoundingBox-Objekt enthält.
void CreateFromBoundingBox( BoundingSphere & Out, const BoundingOrientedBox & Box) noexcept
Erstellt eine BoundingSphere-Instanz, die das angegebene BoundingBox-Objekt enthält.
Erstellt eine neue BoundingSphere aus einer Liste von Punkten.
void CreateFromFrustum( BoundingSphere & Out, const BoundingFrustum & fr) noexcept
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 |