|There's more than one way to do things|
Re: Re: Math::Vector - request for commentsby count0 (Friar)
|on Dec 17, 2001 at 09:24 UTC||Need Help??|
Floating point numbers should be compared in terms of a small tolerance.
That is a wonderful point! Many thanks. I have been so used to Perl taking care of the nitty gritty numeric stuff, that I didn't even think of that.
An implementation in terms of atan2 would be better...
I had originally used atan2(), simply for the lack of an inverse-cosine function.. until I was pointed to Math::Trig and told to use it ;) So i just haphazardly switched, never considering accuracy issues.
Thanks a lot for the pointers. They're greatly appreciated =)