The distance between a point and a line, is defined as the shortest distance between a fixed point and any point on the line. It is the length of the line segment that is perpendicular to the line and passes through the point.
The distance d from a point to the line ax+by+c=0 is