public void RotateAroundOriginTest90() { var a = Vector2.UnitX; var t = new Transformation2D(); t.RotateLocal(90f); var expectedA = Vector2.UnitY; Assert.AreEqual(expectedA, t.Transform(a)); }
public void ScaleAroundOriginTest() { var a = new Vector2(-3, 2); var t = new Transformation2D(); t.ScaleLocal(2, -3); var expectedA = new Vector2(-6, -6); Assert.AreEqual(expectedA, t.Transform(a)); }