From: Frank Longbow on
Now, I have only three points. a=[Xa,Ya],b=[Xb,Yb],c=[Xc,Yc]
The question is calculating the distance between a and the line which is between b and c.
From: Matt J on


norm( cross(a-b,c-b))/norm(c-b)
From: Matt J on
"Matt J " <mattjacREMOVE(a)THISieee.spam> wrote in message <i326u3$cc0$1(a)fred.mathworks.com>...
>
>
> norm( cross(a-b,c-b))/norm(c-b)

Make that

abs( det([a-b;c-b]) )/norm(c-b)
From: ImageAnalyst on
And for explanation and future reference, it's easy to find:

http://www.bing.com/search?q=point+line+distance+formula

Lots of good info there.