2D Oval Rotation

Blitz3D Forums/Blitz3D Beginners Area/2D Oval Rotation

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am making a simple 2D game. I am trying to create all media in-game. The bullet is composed of two lines and an oval. I need to rotate the bullet 360 degrees (in increments of 10). I successfully was able to rotate the two lines, but not about a central point. My formula:

x# = lastX#*cos(10) - lastY#*sin(10)
y# = lastY#*cos(10) + lastX#*sin(10)

(I'm pretty sure that's the formula.)

As for rotating the oval, I'm stumped, because the oval is always drawn from the top-left-hand corner.

So my questions are:

1) How can I rotate the lines about a central point?
2) How can I rotate the oval about a central point?

I hope this makes sense.

Thanks in advance.