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
Removes all intervals from `ival` and produces a tree that contains the remaining intervals.
371
-
**The tree must be deoverlapped, or the result is undefined.**
372
-
`ival` is expected to encompass the entire interval range.
371
+
Cuts the intervals of the tree out of the given interval. Like a cookie cutter cuts out of dough.
372
+
This will return a new interval_tree containing the gaps between the intervals in the tree and the given interval.
373
+
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.
374
+
Open intervals will not behave like this, so (0,5)(6,10) will produce a new interval (5,6).
375
+
376
+
**IMPORTANT! The tree must be deoverlapped, or the result is undefined.**
377
+
`ival` can be any subrange of the tree, including encompassing the whole tree.
373
378
374
379
**Returns**: A new interval_tree containing the gaps.
0 commit comments