dev/math/geom/ SimpleComputationalGeometry


Detecting clicks on lines

Find the distance from a point to the line, and see if it is below a tolerance value. See stack overflow Summarised at: DistanceFromPointToLine1

Detecting clicks within a polygon