Android app on Google Play

Lines and points

The distance between the point P(x1,y1) ) and the line with the equation y=ax+b is given by the Distance Formula:

dist(P,l)=frac{|a*x_1+b-y_1|}{sqrt{a^2+1}}

Calculate the distance between a point and a line

Line l: y = ax + b
a: b:
Point: P(x1,y1)
x1: y2: