i want to turn a circle around it's own center like a ball or car tire
so i got a 2d vector class for my object(circle) position
and i draw a circle using that
Ellipse(backbufferDC,(int)objectpos.x-25 , (int)objectpos.y-25 , (int)objectpos.x+25 , (int)objectpos.y+25);how can i spin my circle now ?
i've tried this :
x = x*cosf(r) - y* sinf(r); y = y*cosf(r) + x * sinf(r);
just made my circle to move around a circular path