Distance from a point to a line

Change the equation of the line and the location of the point P by dragging the points.
The distance from the point P is defined to be the perpendicular distance.

Information: Distance from a point to a line