Nope. Unfortunately not it. I don't think I've explained well. Say you have an angle x, which you want to find out, and you have the adjacent and opposite sides. Usually you would get the reciprocal of tan and put the opposite side/adjacent side to work out x.

I'm asking how you could work this out in gameplay, with functions.