Finds the shortest distance between the line, as a finite chord, and a point or another line.
rhinoscriptsyntax.LineMinDistanceTo (line, point_or_line)
rhinoscript.line.LineMinDistanceTo (line, point_or_line)
line |
Required. List of 6 numbers, two Point3d, or Line. |
point_or_line |
Required. Point3d or Line. The test point or line. |
Number |
A distance (D) such that if Q is any point on the line and P is any point on the other object, then D <= Rhino.Distance(Q, P). |
None |
On error. |
import rhinoscriptsyntax as rs
line = (0,0,0), (10,10,0)
print rs.LineMinDistanceTo(line, (10,5,0))