atan2 | ||||||||||
Type | function | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Summary | Returns the arc tangent of one number divided by another, using the sign of both. | |||||||||
Introduced | 1.0 | |||||||||
OS | mac, windows, linux, ios, android | |||||||||
Platforms | desktop, server, mobile | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Values |
| |||||||||
Related | Constant: pi Glossary: sign, radian, custom function, return, degree, math operation Control Structure: function | |||||||||
Description | Use the atan2 function to find the arc tangent of one number divided by another when sign is significant. In most cases, atan2(y,x) is equal to atan(y/x). However, if both x and y are negative, the sign of x/y is positive. In this case, the atan function returns an angle in the first quadrant, but the atan2 function returns an angle in the third quadrant. If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information. | |||||||||
Tags | math |