From b121c2fd91e16bd85b95f4e0c5ae6b2179d648e3 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 24 Oct 1996 23:46:33 +0000 Subject: [PATCH] lilypond-0.0.9 --- src/boxes.cc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/boxes.cc diff --git a/src/boxes.cc b/src/boxes.cc new file mode 100644 index 0000000000..ebfc08abfe --- /dev/null +++ b/src/boxes.cc @@ -0,0 +1,31 @@ +#include "boxes.hh" +#include "const.hh" + +void +Interval::set_empty() { + min = INFTY; + max = -INFTY; +} +Real +Interval::length() const { + return max-min; +} +Box::Box(svec 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; +} + -- 2.39.5