![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <bounding_volume.hpp>
Public Member Functions | |
BoundingSphere () noexcept | |
BoundingSphere (const Point3 &p) noexcept | |
BoundingSphere (FXMVECTOR p) noexcept | |
BoundingSphere (const Point3 &p, F32 r) noexcept | |
BoundingSphere (FXMVECTOR p, F32 r) noexcept | |
BoundingSphere (const AABB &aabb) noexcept | |
BoundingSphere (const BoundingSphere &sphere) noexcept=default | |
BoundingSphere (BoundingSphere &&sphere) noexcept=default | |
~BoundingSphere ()=default | |
BoundingSphere & | operator= (const BoundingSphere &sphere) noexcept=default |
BoundingSphere & | operator= (BoundingSphere &&sphere) noexcept=default |
const XMVECTOR XM_CALLCONV | Centroid () const noexcept |
F32 | Radius () const noexcept |
bool | Encloses (const Point3 &point) const noexcept |
bool | EnclosesStrict (const Point3 &point) const noexcept |
bool XM_CALLCONV | Encloses (FXMVECTOR point) const noexcept |
bool XM_CALLCONV | EnclosesStrict (FXMVECTOR point) const noexcept |
bool | Encloses (const AABB &aabb) const noexcept |
bool | EnclosesStrict (const AABB &aabb) const noexcept |
bool | Encloses (const BoundingSphere &sphere) const noexcept |
bool | EnclosesStrict (const BoundingSphere &sphere) const noexcept |
bool | Overlaps (const BoundingSphere &sphere) const noexcept |
bool | OverlapsStrict (const BoundingSphere &sphere) const noexcept |
bool | operator== (const BoundingSphere &sphere) const noexcept |
bool | operator!= (const BoundingSphere &sphere) const noexcept |
Static Public Member Functions | |
static const BoundingSphere XM_CALLCONV | Union (const BoundingSphere &sphere, const Point3 &point) noexcept |
template<typename VertexT > | |
static const BoundingSphere XM_CALLCONV | Union (const BoundingSphere &sphere, const VertexT &vertex) noexcept |
static const BoundingSphere XM_CALLCONV | Union (const BoundingSphere &sphere, FXMVECTOR point) noexcept |
static const BoundingSphere XM_CALLCONV | Maximum () noexcept |
Private Attributes | |
XMVECTOR | m_pr |
A class of Bounding Spheres.
|
noexcept |
Constructs a bounding sphere.
|
explicitnoexcept |
Constructs a bounding sphere of the given point.
[in] | p | A reference to the point. |
|
explicitnoexcept |
Constructs a bounding sphere of the given point.
[in] | p | The point. |
Constructs a BoundingSphere.
[in] | p | A reference to the position. |
[in] | r | The radius. |
|
noexcept |
Constructs a bounding sphere.
[in] | p | The position. |
[in] | r | The radius. |
|
explicitnoexcept |
Constructs a bounding sphere from the given AABB.
[in] | aabb | A reference to the aabb. |
|
defaultnoexcept |
Constructs a bounding sphere from the given bounding sphere.
[in] | sphere | A reference to the sphere to copy. |
|
defaultnoexcept |
Constructs a bounding sphere by moving the given bounding sphere.
[in] | sphere | A reference to the sphere to move. |
|
default |
Destructs this bounding sphere.
|
noexcept |
Returns the centroid of this bounding sphere.
|
noexcept |
Checks whether this bounding sphere completely encloses the given point.
[in] | point | A reference to the point. |
true
if this bounding sphere completely encloses point. false
otherwise.
|
noexcept |
Checks whether this bounding sphere completely encloses the given point.
[in] | point | The point. |
true
if this bounding sphere completely encloses point. false
otherwise.
|
noexcept |
|
noexcept |
Checks whether this bounding sphere completely encloses the given bounding sphere.
[in] | sphere | A reference to the bounding sphere. |
true
if this bounding sphere completely encloses sphere. false
otherwise.
|
noexcept |
Checks whether this bounding sphere completely, strictly encloses the given point.
[in] | point | A reference to the point. |
true
if this bounding sphere completely, strictly encloses point. false
otherwise.
|
noexcept |
Checks whether this bounding sphere completely, strictly encloses the given point.
[in] | point | The point. |
true
if this bounding sphere completely, strictly encloses point. false
otherwise.
|
noexcept |
|
noexcept |
Checks whether this bounding sphere completely, strictly encloses the given bounding sphere.
[in] | sphere | A reference to the bounding sphere. |
true
if this bounding sphere completely, strictly encloses sphere. false
otherwise.
|
staticnoexcept |
Returns the maximum bounding sphere (i.e. the bounding sphere that is invariant for union operations).
|
noexcept |
Checks whether the given bounding sphere is not equal to this bounding sphere.
[in] | sphere | A reference to the bounding sphere. |
true
if the given bounding sphere is equal to this bounding sphere. false
otherwise.
|
defaultnoexcept |
Copies the given bounding sphere to this bounding sphere.
[in] | sphere | A reference to the bounding sphere to copy. |
|
defaultnoexcept |
Moves the given bounding sphere to this bounding sphere.
[in] | sphere | A reference to the bounding sphere to move. |
|
noexcept |
Checks whether the given bounding sphere is equal to this bounding sphere.
[in] | sphere | A reference to the bounding sphere. |
true
if the given bounding sphere is equal to this bounding sphere. false
otherwise.
|
noexcept |
Checks whether this bounding sphere overlaps the given bounding sphere.
[in] | sphere | A reference to the bounding sphere. |
true
if this bounding sphere overlaps sphere. false
otherwise.
|
noexcept |
Checks whether this bounding sphere strictly overlaps the given bounding sphere.
[in] | sphere | A reference to the bounding sphere. |
true
if this bounding sphere strictly overlaps sphere. false
otherwise.
|
noexcept |
Returns the radius of this bounding sphere.
|
staticnoexcept |
Returns the union bounding sphere of the given bounding sphere and the given point.
[in] | sphere | A reference to the bounding sphere. |
[in] | point | A reference to the point. |
|
staticnoexcept |
Returns the union bounding sphere of the given bounding sphere and the given vertex.
VertexT | The vertex type. |
[in] | sphere | A reference to the bounding sphere. |
[in] | vertex | A reference to the vertex. |
|
staticnoexcept |
Returns the union bounding sphere of the given bounding sphere and the given point.
[in] | sphere | A reference to the bounding sphere. |
[in] | point | The point. |
|
private |
The position and radus of this bounding sphere.