$ArcTan2

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Inverse tangent of ratio of arguments

Note: Many $functions have been deprecated in favor of Object Oriented methods. There is currently no direct OO equivalent for the $ArcTan2 function.

The $ArcTan2 function returns the arctangent (in radians) of the ratio of two arguments — x divided by y. If the second argument is 0 (or omitted), an error message is printed and a 0 is returned.

Syntax

%num = $ArcTan2(x,y)