This content has been marked as final.
Show 5 replies

1. Re: sin ,cos and tan functions !!!
Ned Murphy Apr 5, 2013 10:43 AM (in response to adosai)1 person found this helpfulWhat were your results that make you say all the functions were wrong?

2. Re: sin ,cos and tan functions !!!
Rothrock Apr 5, 2013 11:53 AM (in response to adosai)1 person found this helpfulMy guess is that you aren't converting between degrees and radians?
All the flash trig functions use radians for their input.
So if you want to change angle to radians multiply your angle by Math.Pi/180.

3. Re: sin ,cos and tan functions !!!
adosai Apr 5, 2013 11:53 AM (in response to Ned Murphy)for example
we are all knows that sin30 = .5 ,but with my calcutator it was 0.988031624092862
cos60 = .5 ,but with my calcutator it was 0.988031624092862

4. Re: sin ,cos and tan functions !!!
Rothrock Apr 5, 2013 1:50 PM (in response to adosai)1 person found this helpfulSo try what I suggested:
Math.sin(30*Math.PI/180)
You must use radians with the Flash trig functions. (http://en.wikipedia.org/wiki/Radian)

5. Re: sin ,cos and tan functions !!!
adosai Apr 6, 2013 7:34 AM (in response to Rothrock)thank U , that was helpful ...