Flash の角度とラジアンの計算法
2008年10月16日 13:38
//ラジアン→度
function rad2deg(rad:Number):Number{
return rad * ( 180 / Math.PI );
}
//度→ラジアン
function deg2rad(deg:Number):Number{
return deg * ( Math.PI / 180 );
}
カテゴリー: 数学・物理
Leave a comment
2008年10月16日 13:38
//ラジアン→度
function rad2deg(rad:Number):Number{
return rad * ( 180 / Math.PI );
}
//度→ラジアン
function deg2rad(deg:Number):Number{
return deg * ( Math.PI / 180 );
}
カテゴリー: 数学・物理
Leave a comment
コメントはまだありません
No comments yet.