atan2

メソッド Type method
Math.atan(Y, X) Format Math.atan (Y, X)
Commentary
XY座標から角度(ラジアン)を求めます。 Angle from the XY coordinates (in radians) calculated.
サンプルコード Sample code
x = inputs[0]; x = inputs [0];
y = inputs[1]; y = inputs [1];
rad = Math.atan2(y,x); rad = Math.atan2 (y, x);
outputs[0] = rad * 180/Math.PI; outputs [0] = rad * 180/Math.PI;