|
| BoundingBox () |
| The empty constructor.
|
|
| BoundingBox (const BoundingBox &init) |
| Copy constructor.
|
|
| BoundingBox (const MbCube &init) |
| Copy constructor.
|
|
| BoundingBox (float xmin, float ymin, float zmin, float xmax, float ymax, float zmax, bool normalize=false) |
| The constructor by coordinates. More...
|
|
| BoundingBox (const Point3DF &p0, const Point3DF &p1, bool normalize=false) |
| The constructor by two points. More...
|
|
| ~BoundingBox () |
| Destructor.
|
|
bool | IsEmpty () const |
| The check for emptiness. More...
|
|
void | SetEmpty () |
| Set empty ("reverted").
|
|
void | Set (float xmin, float ymin, float zmin, float xmax, float ymax, float zmax, bool normalize=false) |
| Initialize by coordinates. More...
|
|
void | Set (const Point3DF &p0, const Point3DF &p1, bool normalize=false) |
| Initialize by two points. More...
|
|
Point3DF | GetMin () const |
| Give the minimal coordinates.
|
|
Point3DF | GetMax () const |
| Give the maximal coordinates.
|
|
void | AddRect (const RectF &r, const Matrix3DF &placeFrom) |
| Add bounding box. More...
|
|
void | Normalize () |
| Normalize itself.
|
|
void | Include (float x, float y, float z) |
| Enclose a point specified as XYZ. More...
|
|
void | Include (const Point3DF &) |
| Enclose a point.
|
|
void | Include (const BoundingBox &) |
| Enclose a box.
|
|
bool | Union (const BoundingBox &cube1, const BoundingBox &cube2) |
| A box of union of two boxes. More...
|
|
float | GetLengthX () const |
| Give the size of the X side of a box.
|
|
float | GetLengthY () const |
| Give the size of the Y side of a box.
|
|
float | GetLengthZ () const |
| Give the size of the Z side of a box.
|
|
float | GetDiagonal () const |
| Give the size of box diagonal.
|
|
void | GetVertex (size_t index, Point3DF &p) const |
| Get a box vertex by an index. More...
|
|
Point3DF | GetCenter () const |
| Give the box center.
|
|
void | Enlarge (float delta) |
| Expand the box in all directions on a "delta" amount.
|
|
void | Enlarge (float dx, float dy, float dz) |
| Expand the box in all directions on a corresponding amount.
|
|
void | Move (const Vector3DF &to) |
| Translate along a vector.
|
|
void | Transform (const Matrix3DF &matrix) |
| Transform according to the matrix.
|
|
void | Scale (float sx, float sy, float sz) |
| Scale.
|
|
bool | IsSame (const BoundingBox &other) const |
| Determine whether an object is equal?
|
|
bool | Intersect (const MbCartPoint3D &, const MbVector3D &, float eps) const |
| Whether the box intersects the line or not. More...
|
|
void | operator= (const BoundingBox &) |
| Assign a value.
|
|
BoundingBox & | operator|= (const Point3DF &) |
| Enclose a point.
|
|
BoundingBox & | operator|= (const BoundingBox &) |
| Enclose a bounding box.
|
|
bool | operator== (const BoundingBox &) const |
| The equality operator.
|
|
bool | operator!= (const BoundingBox &) const |
| The inequality operator.
|
|