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
Find the distance from a point to the line, and see if it is below a tolerance value. See stack overflow