diff options
author | Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com> | 2019-07-27 02:31:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-27 02:31:28 +0200 |
commit | 6f727c04761b043176735c225f8334166d50675a (patch) | |
tree | 53853ba01b3670c2368ea13cebe1a3a59350893c | |
parent | e4ec59b6ae7ba4da8a57d35a4763192fd84fa358 (diff) | |
parent | d54df7b9046363dd6d353f4ca172e9a3ddc39233 (diff) |
Merge pull request #30855 from neikeq/issue-30853
C#: Fix Transform2D.AffineInverse()
-rw-r--r-- | modules/mono/glue/Managed/Files/Transform2D.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/mono/glue/Managed/Files/Transform2D.cs b/modules/mono/glue/Managed/Files/Transform2D.cs index 33ff286769..12a3811230 100644 --- a/modules/mono/glue/Managed/Files/Transform2D.cs +++ b/modules/mono/glue/Managed/Files/Transform2D.cs @@ -98,6 +98,8 @@ namespace Godot return x[columnIndex]; case 1: return y[columnIndex]; + case 2: + return origin[columnIndex]; default: throw new IndexOutOfRangeException(); } @@ -112,6 +114,9 @@ namespace Godot case 1: y[columnIndex] = value; return; + case 2: + origin[columnIndex] = value; + return; default: throw new IndexOutOfRangeException(); } @@ -136,7 +141,7 @@ namespace Godot inv[0] *= new Vector2(detInv, -detInv); inv[1] *= new Vector2(-detInv, detInv); - inv[2] = BasisXform(-inv[2]); + inv[2] = inv.BasisXform(-inv[2]); return inv; } |