You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
🗺️ A point-in-polygon test for a polygon used once (#68): polygon_containment and multi_polygon_containment, behind the footprint feature.
It tests edge by edge with no index, and allocates nothing. A ring is any iterator of positions, so a polygon can be tested straight from where it lies, such as one row of a column of WKB.
A small polygon takes about 13 ns a test, level with geo::Contains on a polygon already built, and 16 times faster than preparing a Footprint for the one test.
It gives a Footprint's answer for the same rings, valid or not: the two share one edge rule and one rule for combining rings. Footprint is as fast as before; it compiles to the same instructions.