generative modeling for Rhino
I would like to compare two domains to see if there is an overlap of the ranges.
Domain One: 1 to 10
Domain Two: 9 to 15
Overlap = True
Is there any component that can help me achieve this?
Since you posted this in the C#/VB forum, you can use the static method on Interval to create an interval that is the intersection of two existing intervals. If this method returns an invalid interval, the two did not intersect.
Dim intX As Interval = Interval.FromIntersection(intA, intB)
If (intX.IsValid) Then 'intA and intB intersect