Cyclone | Cyclone: cyclone::BoundingSphere Struct Reference |
#include <collide_coarse.h>
Collaboration diagram for cyclone::BoundingSphere:
Public Member Functions | |
BoundingSphere (const Vector3 ¢re, real radius) | |
Creates a new bounding sphere at the given centre and radius. | |
BoundingSphere (const BoundingSphere &one, const BoundingSphere &two) | |
Creates a bounding sphere to enclose the two given bounding spheres. | |
bool | overlaps (const BoundingSphere *other) const |
Checks if the bounding sphere overlaps with the other given bounding sphere.SphereBVHOverlap. | |
real | getGrowth (const BoundingSphere &other) const |
Reports how much this bounding sphere would have to grow by to incorporate the given bounding sphere. | |
real | getSize () const |
Returns the volume of this bounding volume. | |
Public Attributes | |
Vector3 | centre |
real | radius |
|
Creates a new bounding sphere at the given centre and radius.
|
|
Creates a bounding sphere to enclose the two given bounding spheres.
|
|
Reports how much this bounding sphere would have to grow by to incorporate the given bounding sphere. Note that this calculation returns a value not in any particular units (i.e. its not a volume growth). In fact the best implementation takes into account the growth in surface area (after the Goldsmith-Salmon algorithm for tree construction). |
|
Returns the volume of this bounding volume. This is used to calculate how to recurse into the bounding volume tree. For a bounding sphere it is a simple calculation. |
|
Checks if the bounding sphere overlaps with the other given bounding sphere.SphereBVHOverlap.
|
|
|
|
|
© 2000-2003 Icosagon. All Rights Reserved.
Distributed under licence.
Cyclone Version 2.0.5 (Documentation generated Fri Nov 10 20:44:18 2006). |