54 #include <CGAL/basic.h>
55 #endif // CGAL_BASIC_H
56 #ifndef CGAL_CARTESIAN_CLASSES_H
58 #endif // CGAL_CARTESIAN_CLASSES_H
65 class Bbox_2 :
public Handle_for< Fourtuple<double> >
69 Bbox_2(
double x_min,
double y_min,
70 double x_max,
double y_max);
81 double max(
int i)
const;
82 double min(
int i)
const;
119 if(i == 0) {
return xmin(); }
128 if(i == 0) {
return xmax(); }
148 #ifndef NO_OSTREAM_INSERT_BBOX_2
155 os << b.
xmin() <<
' ' << b.
ymin() <<
' '
165 os <<
"Bbox_2(" << b.
xmin() <<
", " << b.
ymin() <<
", "
166 << b.
xmax() <<
", " << b.
ymax() <<
")";
171 #endif // NO_OSTREAM_INSERT_BBOX_2
175 #ifndef NO_ISTREAM_EXTRACT_BBOX_2
180 double xmin, ymin, xmax, ymax;
184 is >> xmin >> ymin >> xmax >> ymax;
193 b =
Bbox_2(xmin, ymin, xmax, ymax);
196 #endif // NO_ISTREAM_EXTRACT_BBOX_2
202 #endif // CGAL_BBOX_2_H
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
Bbox_2 operator+(const Bbox_2 &b) const
void write(std::ostream &os, const T &t, const io_Read_write &)
bool operator==(const Bbox_2 &b) const
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
bool operator!=(const Bbox_2 &b) const
bool do_overlap(const Bbox_2 &bb1, const Bbox_2 &bb2)
void read(std::istream &is, T &t, const io_Read_write &)
#define CGAL_BEGIN_NAMESPACE
std::ostream & operator<<(std::ostream &os, const COM_exception &ex)
Print out a given exception.
#define CGAL_END_NAMESPACE
#define CGAL_kernel_precondition(EX)