pmp-library  1.0
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 bbox
 
BoundingBoxoperator+= (const BoundingBox &bb)
 add two bboxes
 
Pointmin ()
 get min point
 
Pointmax ()
 get max point
 
Point center () const
 get center point
 
bool is_empty () const
 indicate if bbox is empty
 
Scalar size () const
 get size of the bbox
 

Detailed Description

Simple class for representing a bounding box.