Fix glitch in Point.SetPosition.
Fix glitch in Polygon.DistanceToTangetPoint.

In some cases, the method would return an invalid number.