Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: Subroutine not correct (I think)by sundialsvc4 (Abbot) |
on Jun 17, 2015 at 13:18 UTC ( [id://1130798]=note: print w/replies, xml ) | Need Help?? |
The 3D-Pythagorean formula is fundamentally correct ... http://freespace.virgin.net/hugo.elias/routines/r_dist.htm ... but you appear to be subtracting a coordinate from itself, hence always zeros.
In Section
Seekers of Perl Wisdom
|
|