From: Frank Longbow on 31 Jul 2010 17:33 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 31 Jul 2010 18:09 norm( cross(a-b,c-b))/norm(c-b)
From: Matt J on 31 Jul 2010 18:22 "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 31 Jul 2010 19:17 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.
|
Pages: 1 Prev: libaudiodevice.dll problem Next: Beginner_question_storing all for loop outputs into a matrix |