Compute distance between point given as (px, py) and line spanned by points (lx1, ly1) and (lx2, ly2). From http://mathworld.wolfram.com/Point-LineDistance2-Dimensional.html
point_line_dist(px, py, lx_1, ly_1, lx_2, ly_2)
x coordinate of point outside the
y coordinate of point
x coordinate of 1st point spanning a line
y coordinate of 1st point spanning a line
x coordinate of 2nd point spanning a line
y coordinate of 2nd point spanning a line