diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2019-05-26 03:15:56 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2019-05-26 03:15:56 -0400 |
commit | 19786f77ef48b4da5f2c55e3b1307e2f1b885376 (patch) | |
tree | e52f6e1dd8af3e09d2793d8e485920d4eaaef0f4 /modules/mono/glue | |
parent | 0d8f1ba6a9182d1f1af39097e2165fc9807377f5 (diff) |
[Mono] Change Atan2 arguments to Y X
Diffstat (limited to 'modules/mono/glue')
-rw-r--r-- | modules/mono/glue/Managed/Files/Mathf.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/glue/Managed/Files/Mathf.cs b/modules/mono/glue/Managed/Files/Mathf.cs index ff26c7fddf..8fb8730b88 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) |