What is the inverse of the function
math.atan2
I use this in Lua where I can get the inverse of math.atan by math.tan
math.atan
math.tan
Apparently, something like this will help:
x = cos(theta) y = sin(theta)
Simple Google search threw this up, and the guy who asked the question said it solved it.