Simple class for representing a bounding box. More...
#include <pmp/BoundingBox.h>
Public Member Functions | |
BoundingBox () | |
Construct infinite/invalid bounding box. More... | |
BoundingBox (const Point &min, const Point &max) | |
Construct from min and max points. More... | |
BoundingBox & | operator+= (const Point &p) |
Add point to the bounding box. More... | |
BoundingBox & | operator+= (const BoundingBox &bb) |
Add two bounding boxes. More... | |
Point & | min () |
Get min point. More... | |
Point & | max () |
Get max point. More... | |
Point | center () const |
Get center point. More... | |
bool | is_empty () const |
Indicate if the bounding box is empty. More... | |
Scalar | size () const |
Get the size of the bounding box. More... | |
Simple class for representing a bounding box.
|
inline |
Construct infinite/invalid bounding box.
|
inline |
Construct from min and max points.
|
inline |
Get center point.
|
inline |
Indicate if the bounding box is empty.
|
inline |
Get max point.
|
inline |
Get min point.
|
inline |
Add two bounding boxes.
|
inline |
Add point to the bounding box.
|
inline |
Get the size of the bounding box.