golang / geo

S2 geometry library in Go
Apache License 2.0
1.69k stars 182 forks source link

Polygon .Invert followed by .ContainsPoint panic #68

Closed jamespwilliams closed 4 years ago

jamespwilliams commented 4 years ago

Calling .Invert on a polygon and then calling .ContainsPoint causes a panic (at least, when initiated using PolygonFromLoops with a list of loops containing a single RegularLoop, I haven't tested other ways of initiating polygons).

https://play.golang.org/p/5rVu_MkN9vN

dsymonds commented 4 years ago

I imagine this could quite likely be the same bug as #69.