If you have got a limited set of angles - or it is allowed to quantise them - I would suggest to cache the computed values or use a pre-computed table of all sines/cosines. E.g. 0.00-359.99 results in a table holding 72000 values - quite feasible.
In reply to Re: computational efficiency
by Perlbotics
in thread computational efficiency
by thelycaeum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |