#include <boundingbox.h>
Collaboration diagram for BoundingBox:
Public Methods | |
BoundingBox (Vector3d _min=Vector3d(-INF,-INF,-INF), Vector3d _max=Vector3d(INF, INF, INF)) | |
Creates a bounding box with the specified min and max vectors. | |
string | toString (void) |
Converts the bounding box to a printable string. | |
BoundingBox | operator= (BoundingBox &) |
Sets the current bounding box to the passed one. | |
bool | contains (const Vector3d &v) |
Checks if the bounding box contains a vector (or a point). | |
Protected Attributes | |
Vector3d | min |
The min and max of the bounding box. | |
Vector3d | max |
The min and max of the bounding box. |
|
Creates a bounding box with the specified min and max vectors.
Definition at line 27 of file boundingbox.cc. |
|
Checks if the bounding box contains a vector (or a point).
Definition at line 48 of file boundingbox.h. References Vector3d::x, Vector3d::y, and Vector3d::z. Referenced by Agent::into(). |
|
Sets the current bounding box to the passed one.
Definition at line 41 of file boundingbox.cc. |
|
Converts the bounding box to a printable string.
Definition at line 32 of file boundingbox.cc. References max, min, and Vector3d::toString(). Referenced by World::World(). |
|
The min and max of the bounding box.
Definition at line 34 of file boundingbox.h. Referenced by BoundingBox(), operator=(), and toString(). |
|
The min and max of the bounding box.
Definition at line 34 of file boundingbox.h. Referenced by BoundingBox(), operator=(), and toString(). |