An NDoc Documented Class Library

LineType2d.Distance Method (xy, Double, xy)

This method calculates the distance to a point Pt. The parameter Lam can be taken to calculate the nearest point of the LineType, which is also return by the outvalue Nearest

public double Distance(
   xy Pt,
   out double Lam,
   out xy Nearest
);

Parameters

Pt
Point to calculate the distance to the LineType
Lam
Parameter to calculate the nearest point
Nearest
The point on the Line, which has the smallest distance to Pt

Return Value

Returns the distance from the line to the point Pt

See Also

LineType2d Class | Minais.Drawing3d.Math Namespace | LineType2d.Distance Overload List