Drawing3d documented Class Library

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

Calculates the distance to a Point, if this distance is smaller than MaxDist. Otherwise big will be returned. . Addionally you can define a Periodicity. Points, which differences in the x- or y- coordinate by the periodicity will be identified.

[Visual Basic]
Public Overloads Sub Distance( _
   ByVal Point As xy, _
   ByVal MaxDist As Double, _
   ByVal Periodicity As xy, _
   ByRef LineLam As Double _
)
[C#]
public double Distance(
   xy Point,
   double MaxDist,
   xy Periodicity,
   out double LineLam
);

Parameters

Point
A Point
MaxDist
Maximal distance
Periodicity
The x and y coordinates are taken modulo Periosicity.x resp periodicity.y. A periodicity of 0 will be ignored.
LineLam
A value for which the nearest point in the array can evaluated with Value

Return Value

Distance.

See Also

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