JavaScript Fanboi
Published in

JavaScript Fanboi

Algorithms

Detecting Mouse Hover over Irregular Shapes

The classic, brilliant PNPOLY algorithm that dates back to 1970

Snapshot of simply.earth, demonstrating the use of mouse hover to identify countries

W. Randolph Franklin’s “point inclusion in polygon” algorithm weighs in at just seven lines of C code. It’s intuitively easy to understand, yet fast enough to work with sophisticated GIS datasets. It’s one of those gems that every advanced…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Joe Honton

Joe Honton

1.6K Followers

Using distraction-free tools for better reading, writing and publishing, and loving it!