Merge pull request #29624 from aaronfranke/3.1-mono-atan2

[3.1] [Mono] Change Atan2 arguments to (y, x)
This commit is contained in:
Rémi Verschelde 2019-06-12 21:02:14 +02:00 committed by GitHub
commit 031fc3ed83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,9 +44,9 @@ namespace Godot
return (real_t)Math.Atan(s); 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) public static Vector2 Cartesian2Polar(real_t x, real_t y)