Antkeeper
0.0.1
|
A plane-bounded convex hull. More...
#include <convex-hull.hpp>
Public Member Functions | |
convex_hull (std::size_t size) | |
Creates a convex hull. More... | |
convex_hull () | |
Creates a convex hull. More... | |
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 math::vector< T, 3 > &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 | |
std::vector< plane< T > > | planes |
Vector of planes with descibe the bounds of the convex hull. More... | |
A plane-bounded convex hull.
Definition at line 36 of file convex-hull.hpp.
|
explicit |
Creates a convex hull.
size | Number of planes the convex hull should accommodate. |
Definition at line 60 of file convex-hull.hpp.
geom::convex_hull< T >::convex_hull |
Creates a convex hull.
Definition at line 65 of file convex-hull.hpp.
|
virtual |
Tests whether this bounding volume contains an axis-aligned bounding box.
Implements geom::bounding_volume< T >.
Definition at line 109 of file convex-hull.hpp.
|
virtual |
Tests whether this bounding volume contains a point.
Implements geom::bounding_volume< T >.
Definition at line 131 of file convex-hull.hpp.
|
virtual |
Tests whether this bounding volume contains a sphere.
Implements geom::bounding_volume< T >.
Definition at line 100 of file convex-hull.hpp.
|
inlinevirtual |
Returns the enumerated type of this bounding volume.
Implements geom::bounding_volume< T >.
Definition at line 69 of file convex-hull.hpp.
|
virtual |
Tests for intersection between this bounding volume and an axis-aligned bounding box.
Implements geom::bounding_volume< T >.
Definition at line 84 of file convex-hull.hpp.
|
virtual |
Tests for intersection between this bounding volume and a bounding sphere.
Implements geom::bounding_volume< T >.
Definition at line 75 of file convex-hull.hpp.
std::vector<plane<T> > geom::convex_hull< T >::planes |
Vector of planes with descibe the bounds of the convex hull.
Definition at line 39 of file convex-hull.hpp.