Drawing3d documented Class Library

xyArray.Distance(LineType, Double, Double, Double) Method

This method calculates the distance between the array and a line only in case the distance is smaller than MaxDist. Otherwise Utils.big will be returned. Imagine a cylinder with radius MaxDist around the polygon. If the line goes through the one of the cylinder, then the distance will be calculated and returned.

[Visual Basic]
Public Overloads Sub Distance( _
   ByVal L As LineType, _
   ByVal MaxDist As Double, _
   ByRef param As Double, _
   ByRef LineLam As Double _
public double Distance(
   LineType L,
   double MaxDist,
   out double param,
   out double LineLam


The line which will be tested
The maximal distance, for which a reasonable result can be returned.
A value for which the closest point in the array can evaluated with Value
A value for which the closest point on the line can evaluated

Return Value

In case the distance of the line is smaller than Maxdist, otherwise the distance is returned. big

See Also

xyArray Class | Drawing3d.Math Namespace | xyArray.Distance Overload List