LineMinDistanceTo

Finds the shortest distance between the line, as a finite chord, and a point or another line.

Syntax

rhinoscriptsyntax.LineMinDistanceTo (line, point_or_line)

rhinoscript.line.LineMinDistanceTo (line, point_or_line)

Parameters

line

Required.  List of 6 numbers, two Point3d, or Line.

point_or_line

Required.  Point3d or Line.  The test point or line.

Returns

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.

Example

import rhinoscriptsyntax as rs

line = (0,0,0), (10,10,0)

print rs.LineMinDistanceTo(line, (10,5,0))

Also See

LineClosestPoint

LineIsFartherThan

LineMaxDistanceTo

LinePlane

LineTransform