Antkeeper
0.0.1
|
Axis-aligned bounding box. More...
#include <aabb.hpp>
Public Types | |
typedef math::vector< T, 3 > | vector_type |
typedef math::matrix< T, 4, 4 > | matrix_type |
typedef math::transform< T > | transform_type |
Public Member Functions | |
aabb (const vector_type &min_point, const vector_type &max_point) | |
aabb () | |
virtual bounding_volume_type | get_bounding_volume_type () const |
Returns the enumerated type of this bounding volume. More... | |
virtual bool | intersects (const sphere< T > &sphere) const |
Tests for intersection between this bounding volume and a bounding sphere. More... | |
virtual bool | intersects (const aabb< T > &aabb) const |
Tests for intersection between this bounding volume and an axis-aligned bounding box. More... | |
virtual bool | contains (const sphere< T > &sphere) const |
Tests whether this bounding volume contains a sphere. More... | |
virtual bool | contains (const aabb< T > &aabb) const |
Tests whether this bounding volume contains an axis-aligned bounding box. More... | |
virtual bool | contains (const vector_type &point) const |
Tests whether this bounding volume contains a point. More... | |
vector_type | corner (std::size_t index) const noexcept |
Returns the position of the specified corner. More... | |
![]() | |
bool | intersects (const bounding_volume &volume) const |
Tests for intersection between this bounding volume and another bounding volume. More... | |
Static Public Member Functions | |
static aabb | transform (const aabb &a, const transform_type &t) |
Transforms an AABB. More... | |
static aabb | transform (const aabb &a, const matrix_type &m) |
Transforms an AABB. More... | |
Public Attributes | |
vector_type | min_point |
vector_type | max_point |
Axis-aligned bounding box.
typedef math::matrix<T, 4, 4> geom::aabb< T >::matrix_type |
typedef math::transform<T> geom::aabb< T >::transform_type |
typedef math::vector<T, 3> geom::aabb< T >::vector_type |
geom::aabb< T >::aabb | ( | const vector_type & | min_point, |
const vector_type & | max_point | ||
) |
geom::aabb< T >::aabb |
|
virtual |
Tests whether this bounding volume contains an axis-aligned bounding box.
Implements geom::bounding_volume< T >.
|
virtual |
Tests whether this bounding volume contains a sphere.
Implements geom::bounding_volume< T >.
|
virtual |
Tests whether this bounding volume contains a point.
Implements geom::bounding_volume< T >.
|
noexcept |
|
inlinevirtual |
Returns the enumerated type of this bounding volume.
Implements geom::bounding_volume< T >.
|
virtual |
Tests for intersection between this bounding volume and an axis-aligned bounding box.
Implements geom::bounding_volume< T >.
|
virtual |
Tests for intersection between this bounding volume and a bounding sphere.
Implements geom::bounding_volume< T >.
|
static |
|
static |
vector_type geom::aabb< T >::max_point |
vector_type geom::aabb< T >::min_point |