#include <BoundingVolume.h>
Public Member Functions | |
| virtual bool | overlaps (const AABB &aabb) const =0 |
| virtual bool | overlaps (const BoundingSphere &bs) const =0 |
| virtual bool | contains (const ml7::Vector2 &v) const =0 |
| virtual bool | contains (const AABB &aabb) const =0 |
| virtual bool | contains (const BoundingSphere &bs) const =0 |
| virtual BoundingVolume & | include (const ml7::Vector2 &v)=0 |
| virtual BoundingVolume & | include (const AABB &aabb)=0 |
| virtual BoundingVolume & | include (const BoundingSphere &bs)=0 |
Protected Member Functions | |
| virtual | ~BoundingVolume (void) |
Interface for bounding volumes like AABBs and bounding spheres. Provides functions to check if the bounding volume overlaps with other bounding volumes, functions to determine whether the bounding volume encloses a given point or another bounding volume, as well as functions to update the bounding volume extent to enclose another given point or another bounding volume.
| virtual bl7::geometry2::BoundingVolume::~BoundingVolume | ( | void | ) | [inline, protected, virtual] |
| virtual bool bl7::geometry2::BoundingVolume::contains | ( | const BoundingSphere & | bs | ) | const [pure virtual] |
Checks whether this bounding volume contains a given bounding sphere.
Implemented in bl7::geometry2::AABB.
| virtual bool bl7::geometry2::BoundingVolume::contains | ( | const AABB & | aabb | ) | const [pure virtual] |
Checks whether this bounding volume contains a given AABB.
Implemented in bl7::geometry2::BoundingSphere.
| virtual bool bl7::geometry2::BoundingVolume::contains | ( | const ml7::Vector2 & | v | ) | const [pure virtual] |
Checks whether this bounding volume contains a given point.
Implemented in bl7::geometry2::AABB, and bl7::geometry2::BoundingSphere.
| virtual BoundingVolume& bl7::geometry2::BoundingVolume::include | ( | const BoundingSphere & | bs | ) | [pure virtual] |
Updates this bounding volume so that it contains a given bounding sphere.
Implemented in bl7::geometry2::AABB.
| virtual BoundingVolume& bl7::geometry2::BoundingVolume::include | ( | const AABB & | aabb | ) | [pure virtual] |
Updates this bounding volume so that it contains a given AABB.
Implemented in bl7::geometry2::BoundingSphere.
| virtual BoundingVolume& bl7::geometry2::BoundingVolume::include | ( | const ml7::Vector2 & | v | ) | [pure virtual] |
Updates this bounding volume so that it contains a given point.
Implemented in bl7::geometry2::AABB, and bl7::geometry2::BoundingSphere.
| virtual bool bl7::geometry2::BoundingVolume::overlaps | ( | const BoundingSphere & | bs | ) | const [pure virtual] |
Checks whether a given bounding sphere and this bounding volume overlap.
Implemented in bl7::geometry2::AABB.
| virtual bool bl7::geometry2::BoundingVolume::overlaps | ( | const AABB & | aabb | ) | const [pure virtual] |
Checks whether a given AABB and this bounding volume overlap.
Implemented in bl7::geometry2::BoundingSphere.
1.6.1