Interval.FromIntersection Method

IntervalFromIntersection Method

Returns a new Interval that is the Intersection of the two input Intervals.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Interval FromIntersection(
	Interval a,
	Interval b
)
Public Shared Function FromIntersection ( 
	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: Interval
If the intersection is not empty, then intersection = [max(a.Min(),b.Min()), min(a.Max(),b.Max())] The interval [ON.UnsetValue,ON.UnsetValue] is considered to be the empty set interval. The result of any intersection involving an empty set interval or disjoint intervals is the empty set interval.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also