Hi,
in my Priithon project I the got from this
"""
Minimum Distance between a Point and a Line
Written by Paul Bourke,October 1988
http://astronomy.swin.edu.au/~pbourke/geometry/pointline/
"""
def geoPointLineDist(p, seg, testSegmentEnds=False)::
...
https://priithon.googlecode.co
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
___
Here's a good list of basic geometry algorithms:
http://www.softsurfer.com/algorithms.htm
Zach
On Oct 6, 2010, at 5:08 PM, Renato Fabbri wrote:
> supose you have a line defined by two points and a point. you want
> the distance
>
> what are easiest possibilities? i am doing it, but its nasty'
supose you have a line defined by two points and a point. you want the distance
what are easiest possibilities? i am doing it, but its nasty'n ugly
--
GNU/Linux User #479299
skype: fabbri.renato
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.