Function union

  • 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

    Interval.union(
    Interval(-1, 1),
    Interval(5, 7)
    ) // throws error
    Interval.union(
    Interval(-1, 1),
    Interval(1, 7)
    ) // Interval(-1, 7)

    Throws

    When x and y don't overlap

    Returns

    Parameters

    Returns Interval

Generated using TypeDoc