Computes the difference between x and y, i.e. an interval with all the values of x that are not in y
x
y
Interval.difference( Interval(3, 5), Interval(4, 6)) // Interval(3, prev(4))Interval.difference( Interval(0, 3), Interval(0, 1)) // Interval(next(1), 3)Interval.difference( Interval(0, 1), Interval.WHOLE) // Interval.EMPTYInterval.difference( Interval(-Infinity, 0), Interval.WHOLE) // Interval.EMPTY
When the difference creates multiple intervals
Generated using TypeDoc
Computes the difference between
x
andy
, i.e. an interval with all the values ofx
that are not iny
Example
Throws
When the difference creates multiple intervals
Returns