#include "const.hh"
void
-Interval:: set_empty() {
- min = INFTY;
- max = -INFTY;
+Interval::set_empty() {
+ min = INFTY;
+ max = -INFTY;
+}
+Real
+Interval::length() const {
+ return max-min;
}
-
Box::Box(svec<Real> s)
{
assert(s.sz() == 4);
Box::Box(Interval ix, Interval iy)
{
- x=ix;
+ x = ix;
y = iy;
}
+