PPolySim OS
For Students · Point in Polygon

Point in Polygon for a map projection

Built for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition. Simulate a map projection live below — adjust the inputs and watch it respond, right in your browser.

Point in Polygon (Geofence)Live

Controls

Is a point inside a shape? The ray-casting algorithm shoots a ray from the point in any direction and counts how many polygon edges it crosses: an odd number means inside, an even number means outside. It is the math behind geofencing — triggering an alert when a phone or vehicle enters or leaves a region — and behind hit-testing in graphics. Drag the point, or click anywhere to move it there.

▶ Run in Python

Data Inspector

LocationINSIDE
Polygon vertices6
Algorithmray casting

Governing equation

Reading this result: A ray fired from this point crosses the polygon boundary an odd number of times, so the point lies inside the region — a geofence here would fire.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Point in Polygon

Frequently asked questions

Is this good for students?
Yes — this version of "Point in Polygon for a map projection" is framed for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.