Antkeeper
0.0.1
|
Abstract base class for bounding volumes. More...
#include <bounding-volume.hpp>
Public Member Functions | |
virtual bounding_volume_type | get_bounding_volume_type () const =0 |
Returns the enumerated type of this bounding volume. More... | |
virtual bool | intersects (const sphere< T > &sphere) const =0 |
Tests for intersection between this bounding volume and a bounding sphere. More... | |
virtual bool | intersects (const aabb< T > &aabb) const =0 |
Tests for intersection between this bounding volume and an axis-aligned bounding box. More... | |
virtual bool | contains (const sphere< T > &sphere) const =0 |
Tests whether this bounding volume contains a sphere. More... | |
virtual bool | contains (const aabb< T > &aabb) const =0 |
Tests whether this bounding volume contains an axis-aligned bounding box. More... | |
virtual bool | contains (const math::vector< T, 3 > &point) const =0 |
Tests whether this bounding volume contains a point. More... | |
bool | intersects (const bounding_volume &volume) const |
Tests for intersection between this bounding volume and another bounding volume. More... | |
Abstract base class for bounding volumes.
T | Scalar type. |
Definition at line 47 of file bounding-volume.hpp.
|
pure virtual |
Tests whether this bounding volume contains an axis-aligned bounding box.
Implemented in geom::sphere< T >, geom::convex_hull< T >, and geom::aabb< T >.
|
pure virtual |
Tests whether this bounding volume contains a point.
Implemented in geom::sphere< T >, geom::aabb< T >, and geom::convex_hull< T >.
|
pure virtual |
Tests whether this bounding volume contains a sphere.
Implemented in geom::sphere< T >, geom::convex_hull< T >, and geom::aabb< T >.
|
pure virtual |
Returns the enumerated type of this bounding volume.
Implemented in geom::sphere< T >, geom::sphere< float >, geom::convex_hull< T >, geom::aabb< T >, and geom::aabb< float >.
|
pure virtual |
Tests for intersection between this bounding volume and an axis-aligned bounding box.
Implemented in geom::sphere< T >, geom::convex_hull< T >, and geom::aabb< T >.
bool geom::bounding_volume< T >::intersects | ( | const bounding_volume< T > & | volume | ) | const |
Tests for intersection between this bounding volume and another bounding volume.
Definition at line 74 of file bounding-volume.hpp.
|
pure virtual |
Tests for intersection between this bounding volume and a bounding sphere.
Implemented in geom::sphere< T >, geom::convex_hull< T >, and geom::aabb< T >.