Need a little help in trigonometry

Hi guys,

Being a little rusty in programming trigo, I need some help.
How do you find A in tan(A) = OPP/ADJ in code?

A = tan^-1(OPP/ADJ) ? how do I do that?

(I am trying to find the angle of the moved touch event.) [import]uid: 75783 topic_id: 13019 reply_id: 313019[/import]

Oh well found it.

Inverse tangent is math.atan();

The solution to the above problem in radians is:

math.atan(opp/adj) [import]uid: 75783 topic_id: 13019 reply_id: 47813[/import]