public void TestDir1() { KVector2 dir = new KVector2(1, 0); KTransform tx = new KTransform(KVector2.Zero, 0, new KVector2(5, 4)); Assert.AreEqual(new KVector2(5, 0), tx.TransformDirLW(dir)); }
public void TestDir() { KVector2 dir = new KVector2(1, 0); KTransform tx = new KTransform(KVector2.Zero, (float)(System.Math.PI), new KVector2(5)); Assert.AreEqual(new KVector2(-5, 0), tx.TransformDirLW(dir)); }