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