-Real
-Interval::length() const {
- assert(max >= min);
- return max-min;
-}
-void
-Interval::unite(Interval h)
-{
- if (h.min<min)
- min = h.min;
- if (h.max>max)
- max = h.max;
-}
-void
-Interval::intersect(Interval h)
-{
- min = MAX(h.min, min);
- max = MIN(h.max, max);
-}
-Interval
-intersection(Interval a, Interval const&b)
-{
- a.intersect(b);
- return a;
-
-}
-int
-Interval::compare(const Interval&a,Interval const&b)
-{
- if (a.min == b.min && a.max == b.max)
- return 0;
-
- if (a.min <= b.min && a.max >= b.max)
- return 1;
+ You should have received a copy of the GNU General Public License
+ along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
+*/