示例#1
0
 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()));
 }
示例#2
0
 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()));
 }
示例#3
0
 public void InvertedTest1()
 {
     Transform2 t = new Transform2();
     t.SetScale(new Vector2(5, -5));
     Transform2 tInverted = t.Inverted();
     Assert.IsTrue(t.GetMatrix() == tInverted.GetMatrix().Inverted());
 }
示例#4
0
 public void InvertedTest2()
 {
     Transform2 t = new Transform2();
     t.Rotation = 123;
     Transform2 tInverted = t.Inverted();
     Assert.IsTrue(Matrix4Ext.AlmostEqual(t.GetMatrix(), tInverted.GetMatrix().Inverted()));
 }
示例#5
0
 public void InvertedTest0()
 {
     Transform2 t = new Transform2();
     Transform2 tInverted = t.Inverted();
     Assert.IsTrue(t.GetMatrix() == tInverted.GetMatrix().Inverted());
 }