Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created February 14, 2010 06:53
Show Gist options
  • Save ongaeshi/303881 to your computer and use it in GitHub Desktop.
Save ongaeshi/303881 to your computer and use it in GitHub Desktop.
degreee、radianの相互変換(AS3)
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