M_Rhino_Geometry_Interval_FromUnion - mcneel/rhinocommon-api-docs GitHub Wiki

Interval.FromUnion Method

Returns a new Interval which contains both inputs.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static Interval FromUnion(
	Interval a,
	Interval b
)

VB

Public Shared Function FromUnion ( 
	a As Interval,
	b As Interval
) As Interval

Parameters

 

a
Type: Rhino.Geometry.Interval
The first input interval.
b
Type: Rhino.Geometry.Interval
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

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Interval Structure
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️