bounding ray of interval. Must point in the Greater
direction.
bounding ray of interval. Must point in the Lesser
direction.
Tests if this interval contains the specified point.
Tests if this interval contains the specified point.
Intervals are compared first by their upper rays, and then by their lower rays.
Intervals are compared first by their upper rays, and then by their lower rays.
Returns the difference between this interval and the other.
Returns the difference between this interval and the other. The set may contain 0, 1, or 2 resulting intervals.
Tests if this interval encloses the other.
Tests if this interval encloses the other. An interval encloses another if it contains all points contained by the other. The union of an interval with an enclosed interval is the enclosing interval. The intersection of an interval with an enclosed interval is the enclosed interval. No interval encloses the empty interval.
Returns an interval which encompasses all values greater than this interval, if such an interval exists.
Returns the intersection of this interval and the other, or None
if the intersection does not
exist.
Tests if this interval intersects the other.
Tests if this interval intersects the other. Intervals intersect if they share any points in common. Said another way, intervals intersect if they overlap.
a0 <= b1 && b0 <= a1
Tests if this interval encloses only a single discrete point.
Returns an interval which encompasses all values less than this interval, if such an interval exists.
bounding ray of interval.
bounding ray of interval. Must point in the Greater
direction.
Transform the bounds of this interval to create a new Interval.
Transform the bounds of this interval to create a new Interval. The resulting interval must be valid, i.e., the transformation must keep the relative order of the bounds.
Returns a normalized form of this Interval, if possible.
Returns a normalized form of this Interval, if possible. The lower bound of a normalized interval is Closed and the upper bound of a normalized interval is Open. If this interval is unbounded in some direction, then the corresponding normalized bound will be None.
Returns the discrete value enclosed by this interval, if it is a point.
Returns the minimum spanning interval of this interval and the other interval.
Returns the minimum spanning interval of this interval and the other interval. An interval spans a pair of intervals if it encloses both. The span of an interval with the empty interval is the empty interval.
Tests if this interval is tangent to the other.
Tests if this interval is tangent to the other. Intervals are tangent if they do not contain any points in common, but the span of the intervals does not contain any points not in one of the intersections.
Converts this interval to a scala.collection.immutable.Range, if possible.
Converts this interval to a scala.collection.immutable.Range, if possible.
IllegalArgumentException
if the resulting range would contain more than
scala.Int.MaxValue elements.
Returns the union of this interval and the other.
Returns the union of this interval and the other. If the intervals do not union, the empty interval is returned. The union of an interval with the empty interval is the empty interval.
Tests if this interval unions the other.
Tests if this interval unions the other. Intervals union if all the points contained by their span are contained by one of the intervals. Said another way, intervals union if they overlap or are tangent.
bounding ray of interval.
bounding ray of interval. Must point in the Lesser
direction.
A non-empty bounded interval over a continuous, infinite, total-ordered set of values. An interval contains all values between its lower and upper bound. The lower and/or upper bound may be unbounded. Any operation which could potentially return an empty interval returns an Option type instead.
type of values contained in the continuous, infinite, total-ordered set which the interval operates on.
bounding ray of interval. Must point in the
Greater
direction.bounding ray of interval. Must point in the
Lesser
direction.