Let the equation of line L be Ax+By+C=0, and the coordinate of point P be (Xo, Yo), then the distance from point P to line L is:
d=│AXo+BYo+C│ / √(A? +B? )。
The distance from a point to a straight line is the length of the vertical line segment, which is the shortest of all the line segments connecting a point outside the straight line and all the points on the straight line.
Formula description:
The linear equation in the formula is Ax+By+C=0, and the coordinate of point P is (x0, y0).
Of all the line segments connecting a point outside the straight line with a point on the straight line, the vertical line segment is the shortest, and the length of this vertical line segment is called the distance from the point to the straight line.