This method calculates the distance to a point only in case, when the distance is smaller then MaxDist else Utils.big will be returned. You can imagine a strip with width MaxDist along the line. If now a point lays into the strip, then this is a good one and the distance will be calculated and returned. If CheckP is true then additional to the strip a halfcircle with center P and radius Maxdist is considered and analogusly for CheckQ.
In case the distance of the line is smaller then Maxdist, the distance is returned else big
LineType2d Class | Minais.Drawing3d.Math Namespace | LineType2d.Distance Overload List