summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Roldán Etcheverry <neikeq@users.noreply.github.com>2019-05-26 17:15:29 +0200
committerGitHub <noreply@github.com>2019-05-26 17:15:29 +0200
commitdf17cf06d44ca8c75ddcbce52b4e56d05ffea332 (patch)
treec238d288595b309e96f25f4b61448372982d791d
parent74adfd0c7ff4f5f5656deeaf5922f7ade50c737d (diff)
parent19786f77ef48b4da5f2c55e3b1307e2f1b885376 (diff)
Merge pull request #29184 from aaronfranke/mono-tan-xy-yx
[Mono] Change Atan2 arguments to (y, x)
-rw-r--r--modules/mono/glue/Managed/Files/Mathf.cs4
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)