MeVisLab Toolbox Reference
|
This class represents an axis aligned bounding box for a WEMPatch. More...
#include <WEMBoundingBox.h>
Public Member Functions | |
bool | contains (const Vector3 &position) const |
Returns whether the bounding box contains the given position. | |
Vector3 | getMin () const |
Returns minimum bounding box extent. | |
Vector3 | getMax () const |
Returns maximum bounding box extent. | |
Vector3 | getCenter () const |
Returns center of bounding box. | |
double | getRadius () const |
Returns radius. | |
bool | isCentered () const |
Returns whether the bounding box is centered. | |
bool | isScalable () const |
Returns whether the bounding box is scalable. | |
void | reset () |
Resets object to default constructed state. | |
void | setExtents (const Vector3 &min, const Vector3 &max) |
Sets extents minimum and maximum and update center and radius. | |
bool | isValid () const |
returns true if is a valid box | |
WEMBoundingBox & | operator&= (const WEMBoundingBox &other) |
returns the united bounding box of this and other | |
This class represents an axis aligned bounding box for a WEMPatch.
Definition at line 22 of file WEMBoundingBox.h.
Returns whether the bounding box contains the given position.
|
inline |
Returns center of bounding box.
Definition at line 32 of file WEMBoundingBox.h.
|
inline |
Returns maximum bounding box extent.
Definition at line 30 of file WEMBoundingBox.h.
|
inline |
Returns minimum bounding box extent.
Definition at line 28 of file WEMBoundingBox.h.
|
inline |
Returns radius.
Definition at line 34 of file WEMBoundingBox.h.
|
inline |
Returns whether the bounding box is centered.
Definition at line 36 of file WEMBoundingBox.h.
References NULL_VEC.
|
inline |
Returns whether the bounding box is scalable.
Definition at line 38 of file WEMBoundingBox.h.
References WEM_EPSILON.
bool ml::WEMBoundingBox::isValid | ( | ) | const |
returns true if is a valid box
WEMBoundingBox & ml::WEMBoundingBox::operator&= | ( | const WEMBoundingBox & | other | ) |
returns the united bounding box of this and other
void ml::WEMBoundingBox::reset | ( | ) |
Resets object to default constructed state.
Sets extents minimum and maximum and update center and radius.