Link Search Menu Expand Document

Math.atan2 methods

Explanation Find the angle of the coordinates ( y , x )
Call format var v = Math.atan2 ( y , x)
Return value Returns the inverse tangent of y / x as a Number
Arguments Number y Y coordinate
Number x X coordinate
Exception None
Example of use
var v = Math.atan2 (1, 1);
print (v, "¥ n");
Related item atan, tan methods