#include <CGAL/Bbox_2.h>


An object b of the class Bbox_2 is a bounding box in the two-dimensional Euclidean plane 2. This class is not templated.


Bbox_2 b ( double x_min, double y_min, double x_max, double y_max);
introduces a bounding box b with lower left corner at (xmin, ymin) and with upper right corner at (xmax, ymax).


bool b.operator== ( c) Test for equality.

bool b.operator!= ( q) Test for inequality.

int b.dimension () Returns 2.

double b.xmin ()
double b.ymin ()
double b.xmax ()
double b.ymax ()

double b.min ( int i) Returns xmin() if i==0 or ymin() if i==1.
Precondition: i==0 or i==1
double b.max ( int i) Returns xmax() if i==0 or ymax() if i==1.
Precondition: i==0 or i==1

Bbox_2 b.operator+ ( c) returns a bounding box of b and c.

See Also