pmp-library  1.2.1
BoundingBox Class Reference

Simple class for representing a bounding box. More...

#include <pmp/BoundingBox.h>

Public Member Functions

 BoundingBox ()
 Construct infinite/invalid bounding box.
 
 BoundingBox (const Point &min, const Point &max)
 Construct from min and max points.
 
BoundingBoxoperator+= (const Point &p)
 Add point to the bounding box.
 
BoundingBoxoperator+= (const BoundingBox &bb)
 Add two bounding boxes.
 
Pointmin ()
 Get min point.
 
Pointmax ()
 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.
 

Detailed Description

Simple class for representing a bounding box.