From 1c7568d83493b86c98bfd7aa52ec0f905082aeb8 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 24 Oct 1996 23:46:32 +0000 Subject: [PATCH] lilypond-0.0.5 --- boxes.cc | 14 +++++++++----- boxes.hh | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/boxes.cc b/boxes.cc index 74475b4530..ebfc08abfe 100644 --- a/boxes.cc +++ b/boxes.cc @@ -2,11 +2,14 @@ #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 s) { assert(s.sz() == 4); @@ -22,6 +25,7 @@ Box::Box() Box::Box(Interval ix, Interval iy) { - x=ix; + x = ix; y = iy; } + diff --git a/boxes.hh b/boxes.hh index c9ff3e62ef..5d0be85452 100644 --- a/boxes.hh +++ b/boxes.hh @@ -49,7 +49,7 @@ struct Interval { if (h.max>max) max = h.max; } - + Real length() const; void set_empty() ; bool empty() { return min > max; } Interval() { -- 2.39.5