hey everyone.

Just a quick question i hope i'm using c# with XNA and currently i have created a game which draws a spaceship on the screen and allows me to move it around using an xbox360 controller.

what i'm trying to do is make the sprite of the spaceship face the direction it is traveling.

one way i was thinking of doing this is using the vector generated by the thumbstick

for example if i'm moving full left then the vector from the joystick is x = -1 y = 0.

and if i was moving right the vector would be

x = 1 y = 0.

i was just wondering if there way to convert that to an angle in radians.

maybe i'm looking at this totally the wrong way.

thanks in advance for any advice on this

-Midi