No such thing as a small change | |
PerlMonks |
Re^3: Check if line is straightby LanX (Saint) |
on May 16, 2011 at 17:18 UTC ( [id://905119]=note: print w/replies, xml ) | Need Help?? |
> As an erstwhile scientific programmer I still feel the need to point out that with floating point comparisons it might be a good idea to use a tolerance calculation somewhere.... sure ... but I'm waiting pedagogically for the OP to come back before explaining how to get the correct angle out of the dot-product ;)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|