Hello, I'm a newbie to math and I'm trying to work on a video game using XNA from microsoft - just really goofing off.
My problem is how do I Translate 2 coordinates to represent a degree (from 0 to 360).
So, the way it is - is , I have a Xbox Controller and the joystick reports back coordinates from -1 to 1 to X and Y. So in the middle it's Zero and the farthest Y is 1 lowest Y is -1 etc.
How can I take a coordinate like -.863x & -.521y and turn it into a degree between from 0 to 360 . And Vice Versa, how can I take the positive .863x & .521y and turn it to a degree from 0 to 360.
I've attached an image to help visualize: http://imgur.com/idxLu.jpg
Any help is appreciated! Thank you!