My own circle roation formula.Please check it out.

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

My own circle roation formula.Please check it out.

Post by cameron » October 30th, 2012, 12:03 am

I couldn't get the calc rotation transformation formula to work so I made my own. I would like to know the differences in speed and if mine would work fine in a real game.
Attachments
circle - Copy.rar
(131.75 KiB) Downloaded 135 times
Computer too slow? Consider running a VM on your toaster.

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: My own circle roation formula.Please check it out.

Post by LuX » October 30th, 2012, 2:42 pm

I don't understand the question. Your own rotation formula?

You used the basic point translation code but added some extra stuff I don't see the point of it, but yeah.
More simple code would be:

Code: Select all

angle += 0.1f;
gfx.DrawCircle ( CenterX + radius * cos ( angle ), CenterY + radius * sin ( angle ), 50, 255, 255, 255 );
ʕ •ᴥ•ʔ

cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

Re: My own circle roation formula.Please check it out.

Post by cameron » October 30th, 2012, 9:05 pm

Im saying that I couldnt get the rotation transformation formula to work so I came up with my own. Is there really a difference in speed?
Computer too slow? Consider running a VM on your toaster.

Post Reply