Utility functions for geometric intersection and point-in-polygon tests
Tests whether two convex polygons overlap using the Separating Axis Theorem (SAT).
Tests whether the point (x, y) is within radius pixels of the polygon poly.
Tests whether the point (x, y) is inside the polygon poly using the ray-casting algorithm.