I have 4 coodinates (x,y) that mark the 4 corners of a rectangle (not necessarly a square). If I click a point need the "lines" the intersect those points, I need to know which of the coordinate pairs the click was closest to. Did I click nearest the TOP edge? LEFT, BOTTOM or RIGHT ..... or was I outside of a predetermined tolerance?
The idea is to select an edge, without have to hit the "line" exactly.. just gotta be reasonable close