]> git.donarmstrong.com Git - lilypond.git/blob - src/boxes.cc
release: 0.0.11
[lilypond.git] / src / boxes.cc
1 #include "boxes.hh"
2 #include "const.hh"
3 #include "vray.hh"
4
5 Box::Box(svec<Real> &s)
6 {
7     assert(s.sz() == 4);
8     x.min = s[0];
9     x.max = s[1];
10     y.min = s[2];
11     y.max = s[3];
12 }
13
14 Box::Box()
15 {        
16 }
17
18 Box::Box(Interval ix, Interval iy)
19 {
20     x = ix;
21     y = iy;
22 }
23