"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?? |
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.
In Section
Seekers of Perl Wisdom
|
|