hypar-io/Elements

Vector3 `DistanceTo` Polygon and Polyline are not consistent.

wynged opened this issue · 4 comments

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:

  1. 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.