nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be8adcb
)
lib/core: fix order of the params of `atan(y, x)`
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 23 Feb 2016 16:20:04 +0000
(11:20 -0500)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/core/math.nit
b/lib/core/math.nit
index
bdd7daa
..
36cf3fe
100644
(file)
--- a/
lib/core/math.nit
+++ b/
lib/core/math.nit
@@
-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