25 #ifndef CGAL_OPT_BBOX_2_H
26 #define CGAL_OPT_BBOX_2_H
28 #include <CGAL/basic.h>
40 Bbox_2(
double x_min,
double y_min,
double x_max,
double y_max)
88 #ifndef NO_OSTREAM_INSERT_BBOX_2
95 os << b.
xmin() <<
' ' << b.
ymin() <<
' '
105 os <<
"Bbox_2(" << b.
xmin() <<
", " << b.
ymin() <<
", "
106 << b.
xmax() <<
", " << b.
ymax() <<
")";
111 #endif // NO_OSTREAM_INSERT_BBOX_2
115 #ifndef NO_ISTREAM_EXTRACT_BBOX_2
120 double xmin, ymin, xmax, ymax;
124 is >> xmin >> ymin >> xmax >> ymax;
133 b =
Bbox_2(xmin, ymin, xmax, ymax);
136 #endif // NO_ISTREAM_EXTRACT_BBOX_2
174 template <
class InIter>
178 while (first != last) {
179 box += first->bbox();
187 #endif // CGAL_OPT_BBOX_2_H
Bbox_2(double x_min, double y_min, double x_max, double y_max)
bool do_overlap_strict(const Bbox_2 &bb1, const Bbox_2 &bb2)
Bbox_2 & operator+=(const Bbox_2 &b)
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 &)
Bbox_2 get_Bbox_2(InIter first, InIter last)
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
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
#define CGAL_OPT_END_NAMESPACE
bool do_overlap_eps(const Bbox_2 &bb1, const Bbox_2 &bb2, const double eps)
std::ostream & operator<<(std::ostream &os, const COM_exception &ex)
Print out a given exception.
#define CGAL_END_NAMESPACE
#define CGAL_kernel_precondition(EX)
#define CGAL_OPT_BEGIN_NAMESPACE