1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #29184 from aaronfranke/mono-tan-xy-yx

[Mono] Change Atan2 arguments to (y, x)
This commit is contained in:
Ignacio Roldán Etcheverry
2019-05-26 17:15:29 +02:00
committed by GitHub

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)