Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: perl module or code for calculating the shortest distance between a line and a point (vector linear algebra)

by spx2 (Deacon)
on Jan 01, 2010 at 09:15 UTC ( [id://815162]=note: print w/replies, xml ) Need Help??


in reply to Re: perl module or code for calculating the shortest distance between a line and a point (vector linear algebra)
in thread perl module or code for calculating the shortest distance between a line and a point (vector linear algebra)

hi randyk,

yes, that's true, for the plane.

in his code he seems to use $z(point) which suggests these lines and points are in 3D space. the shortest distance from a point to a line is a perpendicular on the line passing through that point. see here the development of a formula for the problem in question.

  • Comment on Re^2: perl module or code for calculating the shortest distance between a line and a point (vector linear algebra)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://815162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found