Vector3 `DistanceTo` Polygon and Polyline are not consistent.
wynged opened this issue · 4 comments
wynged commented
Describe the bug
The method for finding distance between a polygon and the polyline form of that polygon returns bad results. When a polygon is turned into a polygon we get the expected value in the test in this branch, but the polygon itself fails.
https://github.com/hypar-io/Elements/tree/fix-distance-to-polygon
To Reproduce
Steps to reproduce the behavior:
- Look at the test in the branch above.
Expected behavior
Wether a polygon has been turned into a polygon or not shouldn't affect the distance to that object.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
Additional context
Add any other context about the problem here.