[Mono] Change Atan2 arguments to Y X

This commit is contained in:
Aaron Franke 2019-05-26 03:15:56 -04:00
parent 0d8f1ba6a9
commit 19786f77ef
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF

View file

@ -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)