AntInLoop

Point in Polygon Game — Ray Casting & Jordan Curve Theorem

Cast a horizontal ray from P across concave polygons and count odd (Inside) vs. even (Outside) edge crossings.

Time Complexity: O(n)

Study the algorithm · Watch Visualizer · All Algorithm Games