#include <CSOBoundingBox.h>
Public Member Functions | |
| CSOBoundingBox () | |
| Constructor. | |
| CSOBoundingBox (CSO *cso) | |
| Constructor. | |
| CSOBoundingBox (const Vector3 &bbv1, const Vector3 &bbv2) | |
| Constructor. | |
| CSOBoundingBox (const CSOBoundingBox &bBox) | |
| Copy constructor. | |
| ~CSOBoundingBox () | |
| Destructor. | |
| bool | isEmpty () const |
| Returns if this bounding box is empty. | |
| void | makeEmpty () |
| Empties this bounding box (set all values to 0). | |
| void | correct () |
| Corrects all coordinates, so that the min values are indeed smaller than the max values. | |
| bool | intersects (const CSOBoundingBox &bBox) const |
| Returns if this bounding box intersects with the given bounding box. | |
| bool | intersects (const Vector3 &argv1, const Vector3 &argv2) const |
| Returns if this bounding box intersects with a bounding box given by its two vectors. | |
| bool | intersects (const Vector3 ¢er, double radius) const |
| Returns if this bounding box intersects a given sphere. | |
| void | set (const Vector3 &argv1, const Vector3 &argv2) |
| Sets starting and ending vector for this bounding box. | |
| CSOBoundingBox | unify (const CSOBoundingBox &bBox) const |
| Returns the union bounding box of this BB and the given one. | |
| bool | containsPoint (double x, double y, double z) const |
| Returns if this bounding box contains the given point. | |
| void | augment (float value) |
| Augments this bounding box by the given value in all directions. | |
| void | makeCubic () |
| Modifies the bounding box so it becomes cubic with all sides as long as the former longest. | |
| Vector3 | getCenterPoint () const |
| Returns the center point of the bounding box. | |
| void | print () |
| Prints the v1/v2 coordinates to the console. For debugging convenience. | |
Public Attributes | |
| Vector3 | v1 |
| The x/y/z min values. | |
| Vector3 | v2 |
| the x/y/z max values. | |
Definition at line 25 of file CSOBoundingBox.h.
| ml::CSOBoundingBox::CSOBoundingBox | ( | ) |
Constructor.
| ml::CSOBoundingBox::CSOBoundingBox | ( | CSO * | cso | ) |
Constructor.
| ml::CSOBoundingBox::CSOBoundingBox | ( | const CSOBoundingBox & | bBox | ) |
Copy constructor.
| ml::CSOBoundingBox::~CSOBoundingBox | ( | ) |
Destructor.
| void ml::CSOBoundingBox::augment | ( | float | value | ) |
Augments this bounding box by the given value in all directions.
| bool ml::CSOBoundingBox::containsPoint | ( | double | x, | |
| double | y, | |||
| double | z | |||
| ) | const |
Returns if this bounding box contains the given point.
| void ml::CSOBoundingBox::correct | ( | ) |
Corrects all coordinates, so that the min values are indeed smaller than the max values.
| Vector3 ml::CSOBoundingBox::getCenterPoint | ( | ) | const |
Returns the center point of the bounding box.
| bool ml::CSOBoundingBox::intersects | ( | const Vector3 & | center, | |
| double | radius | |||
| ) | const |
Returns if this bounding box intersects a given sphere.
Returns if this bounding box intersects with a bounding box given by its two vectors.
| bool ml::CSOBoundingBox::intersects | ( | const CSOBoundingBox & | bBox | ) | const |
Returns if this bounding box intersects with the given bounding box.
| bool ml::CSOBoundingBox::isEmpty | ( | ) | const |
Returns if this bounding box is empty.
| void ml::CSOBoundingBox::makeCubic | ( | ) |
Modifies the bounding box so it becomes cubic with all sides as long as the former longest.
| void ml::CSOBoundingBox::makeEmpty | ( | ) |
Empties this bounding box (set all values to 0).
| void ml::CSOBoundingBox::print | ( | ) | [inline] |
Prints the v1/v2 coordinates to the console. For debugging convenience.
Definition at line 80 of file CSOBoundingBox.h.
References CSO_PRINT.
Sets starting and ending vector for this bounding box.
The set values are corrected.
| CSOBoundingBox ml::CSOBoundingBox::unify | ( | const CSOBoundingBox & | bBox | ) | const |
Returns the union bounding box of this BB and the given one.
1.5.8