]> git.donarmstrong.com Git - lilypond.git/blob - flower/interval.cc
release: 0.0.8
[lilypond.git] / flower / interval.cc
1 #include <assert.h> 
2 #include "interval.hh"
3 #include <math.h>
4
5 const Real INFTY = HUGE;
6
7 void
8 Interval::set_empty() {
9     min = INFTY;
10     max = -INFTY;
11 }
12
13 Real
14 Interval::length() const {
15     assert(max >= min);
16     return max-min;
17 }
18