Hi,

A background in linear algebra helps.  I just came up with this method
(which, because I thought of it 5 seconds ago, I don't know if it works):

Line p1, p2
Point v

costheta = normalize(p2-p1) dot normalize(v-p1)
dist = length(v-p1)*sin(acos(costheta)

Ian
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to