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

class ADT.Interval

Method `&

this_program(< RangeType >)|zero res = ADT.Interval() & i

Description

Intersect this interval with i. Return zero if they do not overlap; otherwise return an interval whose bounds are max(a, i->a) and min(b, i->b).

Note

Equal-coordinate boundary selection follows min() and max(), including their preference for closed and open boundaries.

See also

overlaps()