If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
-
Sam L
Post
by Sam L »
Hi
I have two 2D positions and need angle from one to another. I can easily get to this point:
7 / 3 = tan X
Any1 knows how to get this into C++ code so I can solve X and get a angle in degrees out of it?
Thanks!
Sam
-
sourada
- Posts: 5
- Joined: Mon May 09, 2005 8:24 pm
Post
by sourada »
Check out atan2 in the standard C math functions...