1
0
Fork 0

C#: Fix `Rotated` and `RotatedLocal`

Implementation was interchanged.
This commit is contained in:
Raul Santos 2023-01-29 18:43:54 +01:00
parent d01ac9c736
commit cc80dda408
No known key found for this signature in database
GPG Key ID: B532473AE3A803E4
1 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ namespace Godot
/// <returns>The rotated transformation matrix.</returns>
public readonly Transform2D Rotated(real_t angle)
{
return this * new Transform2D(angle, new Vector2());
return new Transform2D(angle, new Vector2()) * this;
}
/// <summary>
@ -306,7 +306,7 @@ namespace Godot
/// <returns>The rotated transformation matrix.</returns>
public readonly Transform2D RotatedLocal(real_t angle)
{
return new Transform2D(angle, new Vector2()) * this;
return this * new Transform2D(angle, new Vector2());
}
/// <summary>