The distance between a point P and a line e on the plane is the length of the line segment that is perpendicular to the line e and that joins point P to the line.
Notation
The distance between a point P and a line e is: d(P, e), which is read “distance from P to e.”
Formula
In a Cartesian coordinate system, the distance d between a point P with coordinates (x1,y2) and a line e with the equation Ax+By+C=0 est donnée par la formule :
d(P,e)=|Ax1+By1+C√A2+B2|
Example
Consider the line e with the equation 3x+y−1=0 and the point P(2, 5). The distance from P to e can be calculated as follows:
d(P,e)=3×2+1×5−1√32+12
or approximately 3.1623.