LineMaxDistanceTo

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

Syntax

rhinoscriptsyntax.LineMaxDistanceTo (line, point_or_line)

rhinoscript.line.LineMaxDistanceTo (line, point_or_line)

Parameters

line

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

point_or_line

Required.  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.LineMaxDistanceTo( line, (10,5,0) )

Also See

LineClosestPoint

LineIsFartherThan

LineMinDistanceTo

LinePlane

LineTransform