lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick test for interval containing interval


From: Keith OHara
Subject: Re: Quick test for interval containing interval
Date: Sat, 10 Dec 2011 20:21:44 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

mike <at> apollinemike.com <mike <at> apollinemike.com> writes:

> Before I reinvent the wheel, does the code base have something like 
> Interval::contains that accepts an interval as an argument instead of a point?
> 

Well, there is Interval::superset() if you like object-oriented-obfuscation,
but it would be much more clear to simply
 (a.at (LEFT) <= b.at (LEFT) && a.at (RIGHT) >= b.at (RIGHT))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]