Talk:Rotate an Image Along a Circular Path

I do a similar animation in one of my widgets, and instead of:

if (this.currentFrame < this.totalFrames) this.currentFrame++; else this.currentFrame = 0;

resetting the angle to 0, I just let it increment. After all, sin and cos are periodic functions. Hopefully it eventually just overflows. Haven't noticed anything bad so far. The whole reason is to avoid using an if-else inside a loop. I could have also used '%' but ~enh~

--Crccheck 23:31, 11 Nov 2005 (UTC)