public void InvertedTest8() { Transform2 t = new Transform2(); t.Position = new Vector2(2, 1); t.SetScale(new Vector2(-5, 5)); t.Rotation = (float)(Math.PI / 3.4); Transform2 tInverted = t.Inverted(); Assert.IsTrue(Matrix4Ext.AlmostEqual(t.GetMatrix(), tInverted.GetMatrix().Inverted())); }
public void InvertedTest4() { Transform2 t = new Transform2(); t.SetScale(new Vector2(5, -5)); t.Rotation = (float)Math.PI / 3; Transform2 tInverted = t.Inverted(); Assert.IsTrue(Matrix4Ext.AlmostEqual(t.GetMatrix(), tInverted.GetMatrix().Inverted())); }
public void InvertedTest1() { Transform2 t = new Transform2(); t.SetScale(new Vector2(5, -5)); Transform2 tInverted = t.Inverted(); Assert.IsTrue(t.GetMatrix() == tInverted.GetMatrix().Inverted()); }
public void InvertedTest2() { Transform2 t = new Transform2(); t.Rotation = 123; Transform2 tInverted = t.Inverted(); Assert.IsTrue(Matrix4Ext.AlmostEqual(t.GetMatrix(), tInverted.GetMatrix().Inverted())); }
public void InvertedTest0() { Transform2 t = new Transform2(); Transform2 tInverted = t.Inverted(); Assert.IsTrue(t.GetMatrix() == tInverted.GetMatrix().Inverted()); }