handlePolygonTouch

Checks if a touch at screen coordinates hits a clickable polygon.

Uses point-in-polygon ray casting algorithm.

Return

The clicked polygon or null if none was hit

Parameters

x

The x coordinate in screen pixels

y

The y coordinate in screen pixels