You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cuts the intervals of the tree out of the given interval. Like a cookie cutter cuts out of dough.
373
373
This will return a new interval_tree containing the gaps between the intervals in the tree and the given interval.
374
-
Closed (and closed adjacent) intervals are treated as exclusive on the borders. [0,5][6,10] will not produce another interval between 5 and 6 as they are considered within the intervals and nothing fits inbetween.
375
-
Open intervals will not behave like this, so (0,5)(6,10) will produce a new interval (5,6).
374
+
Closed adjacent intervals are treated as exclusive on the borders. [0,5]a[6,10]a will not produce another interval between 5 and 6 as they are considered within the intervals and nothing fits inbetween.
375
+
Regular closed intervals will not behave like this, so [0,5][6,10] will produce a new interval [5,6].
376
+
Open intervals with integral numbers will also not produce the gap (5, 6), because (5, 6) is empty for integers, not for floats.
376
377
377
378
**IMPORTANT! The tree must be deoverlapped, or the result is undefined.**
378
379
`ival` can be any subrange of the tree, including encompassing the whole tree.
379
380
380
381
**Returns**: A new interval_tree containing the gaps.
0 commit comments