From a51257e2b735c2e9a61c858e4662e678f6a277a2 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sun, 26 May 2019 03:15:56 -0400 Subject: [PATCH] [Mono] Change Atan2 arguments to Y X --- modules/mono/glue/Managed/Files/Mathf.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mono/glue/Managed/Files/Mathf.cs b/modules/mono/glue/Managed/Files/Mathf.cs index a0642782371..1e3ec87506a 100644 --- a/modules/mono/glue/Managed/Files/Mathf.cs +++ b/modules/mono/glue/Managed/Files/Mathf.cs @@ -44,9 +44,9 @@ namespace Godot return (real_t)Math.Atan(s); } - public static real_t Atan2(real_t x, real_t y) + public static real_t Atan2(real_t y, real_t x) { - return (real_t)Math.Atan2(x, y); + return (real_t)Math.Atan2(y, x); } public static Vector2 Cartesian2Polar(real_t x, real_t y)