atan2

種類メソッド
書式 Math.atan(Y, X)
解説
XY座標から角度(ラジアン)を求めます。
サンプルコード
function sampleCode()
{
txtField.data = Math.atan2(10,5);
}
sampleCode();
実際のスクリプトをダウンロード