![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <bounding_volume.hpp>
Public Member Functions | |
AABB () noexcept | |
AABB (const Point3 &p) noexcept | |
AABB (FXMVECTOR p) noexcept | |
AABB (const Point3 &p_min, const Point3 &p_max) noexcept | |
AABB (FXMVECTOR p_min, FXMVECTOR p_max) noexcept | |
AABB (const AABB &aabb) noexcept=default | |
AABB (AABB &&aabb) noexcept=default | |
AABB (const BoundingSphere &sphere) noexcept | |
~AABB ()=default | |
AABB & | operator= (const AABB &aabb) noexcept=default |
AABB & | operator= (AABB &&aabb) noexcept=default |
const XMVECTOR XM_CALLCONV | MinPoint () const noexcept |
const XMVECTOR XM_CALLCONV | MaxPoint () const noexcept |
const std::pair< XMVECTOR, XMVECTOR > XM_CALLCONV | MinAndMaxPointAlongNormal (FXMVECTOR n) const noexcept |
const XMVECTOR XM_CALLCONV | MinPointAlongNormal (FXMVECTOR n) const noexcept |
const XMVECTOR XM_CALLCONV | MaxPointAlongNormal (FXMVECTOR n) const noexcept |
const XMVECTOR XM_CALLCONV | Centroid () const noexcept |
const XMVECTOR XM_CALLCONV | Radius () const noexcept |
const XMVECTOR XM_CALLCONV | Diagonal () 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 AABB &aabb) const noexcept |
bool | OverlapsStrict (const AABB &aabb) const noexcept |
bool | Overlaps (const BoundingSphere &sphere) const noexcept |
bool | OverlapsStrict (const BoundingSphere &sphere) const noexcept |
bool | operator== (const AABB &aabb) const noexcept |
bool | operator!= (const AABB &aabb) const noexcept |
Static Public Member Functions | |
static const AABB XM_CALLCONV | Union (const AABB &aabb, const Point3 &point) noexcept |
template<typename VertexT > | |
static const AABB XM_CALLCONV | Union (const AABB &aabb, const VertexT &vertex) noexcept |
static const AABB XM_CALLCONV | Union (const AABB &aabb, FXMVECTOR point) noexcept |
static const AABB XM_CALLCONV | Union (const AABB &aabb1, const AABB &aabb2) noexcept |
static const AABB XM_CALLCONV | Overlap (const AABB &aabb1, const AABB &aabb2) noexcept |
static const AABB XM_CALLCONV | OverlapStrict (const AABB &aabb1, const AABB &aabb2) noexcept |
static const AABB XM_CALLCONV | Minimum () noexcept |
static const AABB XM_CALLCONV | Maximum () noexcept |
Private Attributes | |
XMVECTOR | m_min |
XMVECTOR | m_max |
A class of Axis-Aligned Bounding Boxes (AABBs).
|
noexcept |
Constructs an AABB.
|
explicitnoexcept |
Constructs an AABB of the given point.
[in] | p | A reference to the point. |
|
explicitnoexcept |
Constructs an AABB of the given point.
[in] | p | The point. |
Constructs an AABB of the given extents.
[in] | p_min | A reference to the minimum extents. |
[in] | p_max | A reference to the maximum extents. |
|
noexcept |
Constructs an AABB of the given extents.
[in] | p_min | The minimum extents. |
[in] | p_max | The maximum extents. |
|
defaultnoexcept |
|
defaultnoexcept |
|
explicitnoexcept |
Constructs an AABB of the given bounding sphere.
[in] | sphere | A reference to the bounding sphere. |
|
default |
Destructs this AABB.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
staticnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
staticnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
private |
The maximum extents of this AABB.
|
private |
The minimum extents of this AABB.