You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ATAN2 is direct mapping to libc's ATAN2 function without any conversion so does not accept integer types as an input.
ARCTANGENT2 is more user friendly (but little bit slower) - it uses pair! type as an input of the coordinates and result is in degrees by default (may be changed using /radians refinement)
Example output:
```
>> arctangent2 10x-10
== -45.0
>> arctangent2/radians 10x-10
== -0.7853981633974483
>> atan2 -10.0 10.0
== -0.7853981633974483
```
NOTE: notice that ATAN2 is using the input in classic order (Y and X)
Implements wish: metaeducation/rebol-issues#882
// {Returns the angle of the point, when measured counterclockwise from a circle's X axis (where 0x0 represents the center of the circle). The return value is in interval -180 to 180 degrees.}
192
+
// point [pair!] "X/Y coordinate in space"
193
+
// /radians "Result is in radians instead of degrees"
0 commit comments