From c00918c9f8c7d7bf74f55f3ea7f862f392e58599 Mon Sep 17 00:00:00 2001 From: Gaetan Zoritchak Date: Thu, 11 May 2017 18:16:37 +0200 Subject: [PATCH] =?UTF-8?q?KT-17853:=C2=A0Kotlin.js=20switched=20parameter?= =?UTF-8?q?s=20of=20Math.atan2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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)`. --- js/js.libraries/src/core/math.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/js.libraries/src/core/math.kt b/js/js.libraries/src/core/math.kt index eb8355fcc61..0f5092d65c6 100644 --- a/js/js.libraries/src/core/math.kt +++ b/js/js.libraries/src/core/math.kt @@ -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