IITC-CE / ingress-intel-total-conversion

intel.ingress.com total conversion user script with some new features. Should allow easier extension of the intel map.
https://iitc.app
ISC License
279 stars 105 forks source link

Include pnpoly utility #552

Open johnd0e opened 2 years ago

johnd0e commented 2 years ago

Seen in fix-china-map-offset, layer-count, fly-links

Sources:

Ref: https://github.com/IITC-CE/ingress-intel-total-conversion/pull/65#issuecomment-455151352

le-jeu commented 1 year ago

so this is now done in 97293922a16943d86d3b8b989a615ddb3cd57b27

Artoria2e5 commented 1 month ago

hmm, pretty sure it can be closed -- now that it's moved to global. happy to see my translation of pnpoly get used still. it's the old 1973 code, not one of the new "robust" ones, but... uhhh, i don't think we will be dealing with weirdly large numbers with lat and lngs.

one day we might need to "expand" long polygon vertices into more points on a great-circle approximation, but that day is not today.