all groups > flash actionscript > april 2005 >
You're in the

flash actionscript

group:

Math



Math badmonkey91
4/30/2005 12:00:00 AM
flash actionscript:
Re: Math Rothrock
4/30/2005 12:00:00 AM
Re: Math badmonkey91
4/30/2005 12:00:00 AM
Re: Math Rothrock
4/30/2005 12:00:00 AM
Ah, that makes sense now.

Yes in Flash you don't give Math.cos an angle you need to give it radians.
Define a variable (or a global variable depending on exactly what you are
doing).

toRadians=Math.PI/180

Then you can use

myCos=Math.cos(angle*toRadians);
Re: Math Rothrock
4/30/2005 12:00:00 AM
Re: Math badmonkey91
4/30/2005 12:00:00 AM
AddThis Social Bookmark Button