lib/core: fix order of the params of `atan(y, x)`
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 23 Feb 2016 16:20:04 +0000 (11:20 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 23 Feb 2016 17:25:28 +0000 (12:25 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/core/math.nit

index bdd7daa..36cf3fe 100644 (file)
@@ -524,11 +524,11 @@ redef class Sys
        end
 end
 
-# Computes the arc tangent given `x` and `y`.
+# Computes the arc tangent given `y` and `x`.
 #
 #     assert atan2(-0.0, 1.0) == -0.0
 #     assert atan2(0.0, 1.0) == 0.0
-fun atan2(x: Float, y: Float): Float `{ return atan2(x, y); `}
+fun atan2(y: Float, x: Float): Float `{ return atan2(y, x); `}
 
 # Approximate value of **pi**.
 fun pi: Float do return 3.14159265