PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

circular pattern compation/algo

Are there any fast circular algo (not using sine/cosine) out there? I need a fast code since sin/cos is too slow inside the loop. Precomputed values will work. But I'm just thinking if anyone wants to share his code ;-)

I dont need a solid circle. I just want to throw my bullets in circle pattern.
GeoffSulcer · 20 Dec 2004, 21:21 UTC
Check PocketFrog's source code. Look for DrawCircle().
How many bullets are you talking about? I've got loads of sin/cos calcs going with loads of bullet and particle calculations with no problems... Of course, the sin/cos is just used once to get the initial deltas (in fixed float) for the animation.

Of course, I'm talking about dozens of calculations, not hundreds or thousands...

It sounds like you may be spending a lot of time for nothing.