Calculates the distance between the line ax + by + c = 0 and the point (x, y) as |ax + by + c| ÷ √(a² + b²). The nearest point on the line, the foot of the perpendicular, is also shown.