|
Re: Cartesian to angle
Quote:
Originally Posted by AdamHeard
Why? That's terribly cumbersome compared to the methods already posted.
|
Well, it takes less clock cycles to just retrieve data from an array compared to calculating the angle on the fly. Even though a look up table does take up considerable amount of space in the RAM (Not really since we are dealing with 64 MB of RAM...) Also given the level of accuracy we only really need, about ± pi/180 radian. I think it should be fine.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
|