M_Rhino_Geometry_Interval_FromIntersection - mcneel/rhinocommon-api-docs GitHub Wiki
Returns a new Interval that is the Intersection of the two input Intervals.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public static Interval FromIntersection(
Interval a,
Interval b
)
VB
Public Shared Function FromIntersection (
a As Interval,
b As Interval
) As Interval
- a
- Type: Rhino.Geometry.Interval
The first input interval. - b
- Type: Rhino.Geometry.Interval
The second input interval.
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.
Supported in: 6.0.16224.21491, 5D58w