Game Development Community

Arc tan?

by John Davis · in Technical Issues · 05/07/2005 (3:29 pm) · 6 replies

How in gods name would you do something like:
aTan(%angle);
I know this is a dumb question, and its likely documented *SOMEWHERE*, but Ive been messing with this for a bit and am pulling out my hair =-). I've tried about 50 variations of m + Atan + 1 and have no clue still.

Help! =-)

(or if you could direct me to somewhere that lists this sorta thing - math functions and the arguments they are expecting..)

#1
05/07/2005 (3:32 pm)
I think, its

mTan(%angle);


but im not sure...try it:P
#2
05/07/2005 (3:44 pm)
Erm does that give the arcTan or the Tan? If it does give the arcTan, then what gives the Tan?

(I ask not because I'm too lazy to try it, but this is in the middle of a huge blob of code and I'm not sure if the problem is here, or elsewhere =-) )
#3
05/07/2005 (6:29 pm)
Nm. I'll just use mAsin(%x/ ( msqrt( 1 + %x*%x )) );
#4
05/08/2005 (3:59 am)
MAtan( X, Y );
#5
05/08/2005 (4:13 am)
I need the single variable arc tan, but mAsin( %x / (msqrt(1 + %x*%x)) sahould be the same thing... right? since:

sin(arctan(x))=x/(sqrt(1+x^2))
#6
05/08/2005 (9:40 pm)
Okay, MAtan( X, 1);

EDIT: Aha, Thanks Gary =-)