I’m trying to find the minimum distance between two line segments (specifically I want the actual line that exists between the points of minimum separation)
So I’m using the LineLine intersection but when you say it should use finite lengths it does not appear to be playing correctly. See the attached example where the closest point between the two infinite lines is outside the bounds of the red segment.
It appears that when one parameter is outside the bound 0>1 this parameter alone is just snapped to the closest bound. But that’s not correct if the function should return the closest parameters as described in http://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Intersect_Intersection_LineLine_1.htm
Any help appreciated.