isPointInPoly

Tests whether the point (x, y) is inside the polygon poly using the ray-casting algorithm.

Return

true if the point is strictly inside the polygon.

Parameters

poly

Polygon vertices (projected 2D points).

x

X coordinate to test.

y

Y coordinate to test.