Antkeeper
0.0.1
|
Bounding sphere. More...
#include <sphere.hpp>
Public Types | |
typedef math::vector< T, 3 > | vector_type |
Public Member Functions | |
sphere (const vector_type ¢er, T radius) | |
sphere () | |
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... | |
![]() | |
bool | intersects (const bounding_volume &volume) const |
Tests for intersection between this bounding volume and another bounding volume. More... | |
Public Attributes | |
vector_type | center |
T | radius |
Bounding sphere.
Definition at line 34 of file sphere.hpp.
typedef math::vector<T, 3> geom::sphere< T >::vector_type |
Definition at line 36 of file sphere.hpp.
geom::sphere< T >::sphere | ( | const vector_type & | center, |
T | radius | ||
) |
Definition at line 53 of file sphere.hpp.
geom::sphere< T >::sphere |
Definition at line 59 of file sphere.hpp.
|
virtual |
Tests whether this bounding volume contains an axis-aligned bounding box.
Implements geom::bounding_volume< T >.
Definition at line 94 of file sphere.hpp.
|
virtual |
Tests whether this bounding volume contains a sphere.
Implements geom::bounding_volume< T >.
Definition at line 83 of file sphere.hpp.
|
virtual |
Tests whether this bounding volume contains a point.
Implements geom::bounding_volume< T >.
Definition at line 109 of file sphere.hpp.
|
inlinevirtual |
Returns the enumerated type of this bounding volume.
Implements geom::bounding_volume< T >.
Definition at line 63 of file sphere.hpp.
|
virtual |
Tests for intersection between this bounding volume and an axis-aligned bounding box.
Implements geom::bounding_volume< T >.
Definition at line 77 of file sphere.hpp.
|
virtual |
Tests for intersection between this bounding volume and a bounding sphere.
Implements geom::bounding_volume< T >.
Definition at line 69 of file sphere.hpp.
vector_type geom::sphere< T >::center |
Definition at line 38 of file sphere.hpp.
T geom::sphere< T >::radius |
Definition at line 39 of file sphere.hpp.