From: fred Date: Wed, 27 Nov 1996 01:40:37 +0000 (+0000) Subject: flower-1.0.8 X-Git-Tag: release/1.5.59~6747 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3972d315be9a4fba11142fd018270f8847bf488a;p=lilypond.git flower-1.0.8 --- diff --git a/flower/interval.cc b/flower/interval.cc new file mode 100644 index 0000000000..b307f4c634 --- /dev/null +++ b/flower/interval.cc @@ -0,0 +1,18 @@ +#include +#include "interval.hh" +#include + +const Real INFTY = HUGE; + +void +Interval::set_empty() { + min = INFTY; + max = -INFTY; +} + +Real +Interval::length() const { + assert(max >= min); + return max-min; +} +