Keith OHara <[email protected]> writes: > 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,
You could check whether the interval intersection is identical with the interval supposed to be inner. The possibilities for clever incomprehensible code are endless. > but it would be much more clear to simply > (a.at (LEFT) <= b.at (LEFT) && a.at (RIGHT) >= b.at (RIGHT)) Yes. -- David Kastrup _______________________________________________ lilypond-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-devel
