WOLFRAM|DEMONSTRATIONS PROJECT

Distance from a Point to a Line

​
c
0.3
m
-1
1
a
b
In the graph,
d
is the distance from
(a,b)
to the line
y=mx+c
. Because the red and green triangles are similar,
d
1
=
ma+c-b
1+
2
m
.