mirror of
https://github.com/godotengine/godot.git
synced 2024-11-15 00:23:27 +00:00
Merge pull request #72325 from raulsntos/dotnet/fix-72321
C#: Fix `Rotated` and `RotatedLocal`
This commit is contained in:
commit
ab70b6ca8a
@ -271,7 +271,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>
|
||||
@ -283,7 +283,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>
|
||||
|
Loading…
Reference in New Issue
Block a user