Inverse of math.atan2?

前端 未结 4 798
面向向阳花
面向向阳花 2021-02-07 06:46

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

4条回答
  •  北海茫月
    2021-02-07 06:55

    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.

提交回复
热议问题