summaryrefslogtreecommitdiff
path: root/boxes.cc
blob: e55af6c6f5ac9ad02ea725ac03bfbe42c4d956d2 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "boxes.hh"
#include "const.hh"

void
Interval:: set_empty() {
	min = INFTY;
	max = -INFTY;
}

Box::Box(svec<Real> s)
{
    assert(s.sz() == 4);
    x.min = s[0];
    x.max = s[1];
    y.min = s[2];
    y.max = s[3];
}

Box::Box()
{        
}
Box::Box(Interval ix, Interval iy)
{
    x=ix;
    y = iy;
}