Created
February 14, 2010 06:53
-
-
Save ongaeshi/303881 to your computer and use it in GitHub Desktop.
degreee、radianの相互変換(AS3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
/** | |
* ... | |
* @author | |
*/ | |
public class Deg2Rad | |
{ | |
static public function deg2rad(x:Number):Number | |
{ | |
return x * 0.0174532925; | |
} | |
static public function rad2deg(x:Number):Number | |
{ | |
return x * 57.2957796; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment