Open f-frhs opened 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.
Line2D.DistanceTo(Point2D p)
this
p
It will be nice if we can discuss whether the testcases is sufficient.
I implemented
Line2D.DistanceTo(Point2D p)
which calculates the distance fromthis
line to the given pointp
. This method should always return the value of 0 or positive.It will be nice if we can discuss whether the testcases is sufficient.