double
Atan2(
y
,
x
)
Arctangent of y divided by x.
Use this function when you have a rise/run and you need the angle. A zero value for x will
return
1
2
π
Example
=
Block
{
ShowAtan2
(10, 5);
ShowAtan2
(0, 0);
ShowAtan2
(100, 0);
ShowAtan2
(0, 100);
};
The arc tangent of 10, 5 is 1.1071487177940904.
The arc tangent of 0, 0 is 0.
The arc tangent of 100, 0 is 1.5707963267948966.
The arc tangent of 0, 100 is 0.