Calculate the distance from point to line
The length of the perpendicular line segment from a point outside a straight line to the straight line is called the distance from the point to the straight line.
Let the equation of the straight line L be Ax+By+C=0, and the coordinates of point P be (Xo, Yo), then the distance from point P to the straight line L is: d=│AXo+BYo+C│ / √(A²+B²).