Drawing3d documented Class Library

LineType2d.Distance Method

This method calculates the distance to a point only, if the distance is smaller then MaxDist, otherwise Utils.big will be returned. You can imagine a strip with width MaxDist along the line. If a point is placed on this strip, it is accepted and the distance will be calculated and returned. If CheckP is true, additional to the strip a half circle with center P and radius Maxdist is considered and analogusly for CheckQ.

Overload List

This method calculates the distance to a point only, if the distance is smaller then MaxDist, otherwise Utils.big will be returned. You can imagine a strip with width MaxDist along the line. If a point is placed on this strip, it is accepted and the distance will be calculated and returned. If CheckP is true, additional to the strip a half circle with center P and radius Maxdist is considered and analogusly for CheckQ.

public double Distance(xy,double,bool,bool,out double)

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 returned by the outvalue Nearest

public double Distance(xy,out double,out xy)

See Also

LineType2d Class | Drawing3d.Math Namespace