Finding centre coordinates of a circle
Hi!
I'm trying to rotate objects around a certain point, but I don't know how to calculate the position of it..
As the title mentions, it's got something to do with a circle, so instead of trying to explain everything in words, here is a simple representation of the situation:
http://junk.purplepies.be/goddamnpieceofblah.gif
Things I know:
- width and height of the screen
- position of the top of the circle inside of the screen
Things I might be able to know (needs testing):
- positions of intersection points of the circle with the left and right side of the screen
So how do I get the x and y position of O?
Thanks in advance :)