C#: Fix Vector2.AngleToPoint

Fixes #26209
This commit is contained in:
Ignacio Etcheverry 2019-02-23 23:28:27 +01:00
parent fd68bb2596
commit da3776a40a

View file

@ -84,7 +84,7 @@ namespace Godot
public real_t AngleToPoint(Vector2 to)
{
return Mathf.Atan2(x - to.x, y - to.y);
return Mathf.Atan2(y - to.y, x - to.x);
}
public real_t Aspect()