Polygon Mesh Processing Library
Loading...
Searching...
No Matches
BoundingBox Class Reference

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.
 
BoundingBoxoperator+= (const Point &p)
 Add point to the bounding box.
 
BoundingBoxoperator+= (const BoundingBox &bb)
 Add two bounding boxes.
 
const Pointmin () const
 Get min point.
 
const Pointmax () 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.
 

Detailed Description

Simple class for representing a bounding box.