Method ADT.Interval()->`-()

class ADT.Interval

Method `-

this_program(< RangeType >)|zero res = ADT.Interval() - interval

Description

Subtract the intersection with interval. Return zero if the intersection equals this interval, or this object if there is no intersection. Otherwise return the remaining interval with the cut boundary's inclusion reversed.

Throws

Throws an error if the intersection reaches neither endpoint, since the result would require two separate intervals.