bl7::geometry2::BoundingVolume Class Reference

#include <BoundingVolume.h>

Inheritance diagram for bl7::geometry2::BoundingVolume:
bl7::geometry2::AABB bl7::geometry2::BoundingSphere

List of all members.

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 BoundingVolumeinclude (const ml7::Vector2 &v)=0
virtual BoundingVolumeinclude (const AABB &aabb)=0
virtual BoundingVolumeinclude (const BoundingSphere &bs)=0

Protected Member Functions

virtual ~BoundingVolume (void)

Detailed Description

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.


Constructor & Destructor Documentation

virtual bl7::geometry2::BoundingVolume::~BoundingVolume ( void   )  [inline, protected, virtual]

Member Function Documentation

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.


The documentation for this class was generated from the following file:

Generated on Tue Dec 1 13:21:10 2009 for flange77: Cyber E-Razor rockt die Galaxis by  doxygen 1.6.1