Returns a new Interval which contains both inputs.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax public static Interval FromUnion(
Interval a,
Interval b
)
Public Shared Function FromUnion (
a As Interval,
b As Interval
) As Interval
Parameters
- a
- Type: Rhino.GeometryInterval
The first input interval. - b
- Type: Rhino.GeometryInterval
The second input interval.
Return Value
Type:
IntervalThe union of an empty set and an increasing interval is the increasing interval.
The union of two empty sets is empty.
The union of an empty set an a non-empty interval is the non-empty interval.
The union of two non-empty intervals is [min(a.Min(),b.Min()), max(a.Max(),b.Max())]
See Also