Skip to content

Commit

Permalink
KT-17853: Kotlin.js switched parameters of Math.atan2
Browse files Browse the repository at this point in the history
https://youtrack.jetbrains.com/issue/KT-17853
The current exposition of the JavaScript [Math object] switched the parameters names.
The correct version is `atan2(y,x)`.

(cherry picked from commit c00918c)
  • Loading branch information
gzoritchak authored and ilya-g committed May 19, 2017
1 parent 50834f9 commit 10c85a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/js.libraries/src/core/math.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public external object Math {
public fun acos(value: Double): Double
public fun asin(value: Double): Double
public fun atan(value: Double): Double
public fun atan2(x: Double, y: Double): Double
public fun atan2(y: Double, x: Double): Double
public fun cos(value: Double): Double
public fun sin(value: Double): Double
public fun exp(value: Double): Double
Expand Down

0 comments on commit 10c85a6

Please sign in to comment.