Mouse algorithmHover polygon shapesDetecting irregularDetecting Mouse Hover over Irregular Shapes W. Randolph Franklin's "point inclusion in polygon test" algorithm weighs in at just seven lines of C code; is fast enough to work with sophisticated GIS datasets; and is one of those gems that every advanced programmer should know.