LoginSignup
0
0

More than 5 years have passed since last update.

ラジアンを度(0~360)に変換

Last updated at Posted at 2014-01-16

ラジアンを0~360度に変換したい。

public static function rad2deg(rad:Number):Number {
    var deg:Number = rad / Math.PI * 180;           
    deg = deg % 360;
    if (deg< 0) {
        deg= 360 + deg;
    }
    return deg;
}
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0