Click or drag to resize

IntervalFromUnion Method

Returns a new Interval which contains both inputs.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
public static Interval FromUnion(
	Interval a,
	Interval b


Type: Rhino.GeometryInterval
The first input interval.
Type: Rhino.GeometryInterval
The second input interval.

Return Value

Type: Interval
The 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())]

Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.20
See Also