mapbox-unity-sdk
mapbox-unity-sdk copied to clipboard
PointInPolygon should take a List<Point2d>, not List<List<Point2D>>
See: https://docs.mapbox.com/mapbox-unity-sdk/api/unity/Mapbox.Utils.PolygonUtils.html
It seems like PointInPolygon should take List<Point2d>, not List<List<Point2d>>. Indeed, the first thing that function does is just grab the first element. Is there a good reason to take a List of Lists, instead of just a List?
I think the original idea there was to use it to check for polygon features instead of just abstract polygons. and building features are lists of lists where the first list is the outline and the following lists are holes. so method header is written to take holes into account, method code....is not :(