Position of a point with respect to a line
Posted on 2013-12-04
Given a point (x,y)
and a line defined by (x1, y1) and (x2, y2)
what is the distance between the point and the line? and
what is the check whether the point lies within the end points?
All in terms of x's and y's for plugging in a computer program.