mathnet / mathnet-spatial

Math.NET Spatial
http://spatial.mathdotnet.com
MIT License
376 stars 132 forks source link

Feat: Line2D.DistanceTo(Point2D p) #238

Open f-frhs opened 8 months ago

f-frhs commented 8 months ago

I implemented Line2D.DistanceTo(Point2D p) which calculates the distance from this line to the given point p. This method should always return the value of 0 or positive.

It will be nice if we can discuss whether the testcases is sufficient.