github repo : arkenidar/point_in_polygon .
click on canvas to add vertices .
( remember to not self-intersect and to use counter-clockwise ordering ) .
click on "reload" to clear canvas .
reload
source code :