atan2

Synopsis

$ atan2(n, m)

Calculate the arc tangent of angle n / m.

Parameters

n - the value (converted to a double) to apply this function to.

m - the value (converted to a double) to apply this function to.

Returns

A double scalar.

Examples

$y = 30; $x = 60; $value = atan2 ($y, $x); println("atan2 of 30/60 is : $value");

atan2 of 30/60 is : 0.4636476090008061

See Also