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
Copy file name to clipboardExpand all lines: std/lua/Math.hx
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -64,14 +64,23 @@ extern class Math {
64
64
**/
65
65
staticfunctionasin(x:Float):Float;
66
66
67
+
#if (lua_ver <= 5.2 || luajit)
67
68
/**
68
69
Returns the arc tangent of y/x (in radians), using the signs of both arguments to find the quadrant of the result. It also handles correctly the case of x being zero.
69
70
70
71
The default value for x is 1, so that the call math.atan(y) returns the arc tangent of y.
72
+
**/
73
+
staticfunctionatan(y:Float):Float;
74
+
#else
75
+
/**
76
+
Returns the arc tangent of y/x (in radians), using the signs of both arguments to find the quadrant of the result. It also handles correctly the case of x being zero.
71
77
72
-
The x argument is ignored on lua 5.2 or older, where atan2 was used instead.
78
+
The default value for x is 1, so that the call math.atan(y) returns the arc tangent of y.
79
+
80
+
The x argument is ignored on lua 5.2 or older and luajit, where atan2 is available instead.
0 commit comments