Computes an interval that has all the values that belong to both x and y, the difference with hull is that x and y must overlap to compute the union
Interval.union( Interval(-1, 1), Interval(5, 7)) // throws errorInterval.union( Interval(-1, 1), Interval(1, 7)) // Interval(-1, 7)
When x and y don't overlap
Generated using TypeDoc
Computes an interval that has all the values that belong to both x and y, the difference with hull is that x and y must overlap to compute the union
Example
Throws
When x and y don't overlap
Returns