#include <lvt/BoundingBox.h>
Public Member Functions | |
BoundingBox (const Vec &min, const Vec &max) | |
Constructs a new BoundingBox containing the two points min and max. | |
BoundingBox () | |
Default constructor. | |
bool | HitTest (const Vec &point) const |
Returns true if the specified point is contained in the BoundingBox. | |
bool | IsValid () const |
Returns true if the BoundingBox is currently in a valid state. | |
Vec | Max () const |
Returns the "upper-right" corner of the BoundingBox. | |
Vec | Min () const |
Returns the "lower-left" corner of the BoundingBox. | |
BoundingBox & | operator+= (const Vec &v) |
Adjusts the BoundingBox to contain its current volume, plus the specified point. | |
BoundingBox & | operator+= (const BoundingBox &rhs) |
Adjusts the BoundingBox to contain its current volume, plus the volume of the specified BoundingBox. |
|
Default constructor. When a BoundingBox is constructed with this constructor, it is initially in an invalid state. Any hit tests against an invalid BoundingBox will always return false. |
|
Constructs a new BoundingBox containing the two points min and max.
|
|
Returns true if the specified point is contained in the BoundingBox.
|
|
Returns true if the BoundingBox is currently in a valid state.
|
|
Returns the "upper-right" corner of the BoundingBox.
|
|
Returns the "lower-left" corner of the BoundingBox.
|
|
Adjusts the BoundingBox to contain its current volume, plus the specified point.
|
|
Adjusts the BoundingBox to contain its current volume, plus the volume of the specified BoundingBox.
|