private void Update(float updatePeriod) { var t = new Transformation2D(); t.RotateLocal(-200f * updatePeriod); bird.TransformCenter(t); }
public void RotateAroundOriginTestIdentity2() { var t = new Transformation2D(); t.RotateLocal(0f); var expectedM = Matrix3x2.Identity; Assert.AreEqual(expectedM, t); }
public void RotateAroundOriginTest90() { var a = Vector2.UnitX; var t = new Transformation2D(); t.RotateLocal(90f); var expectedA = Vector2.UnitY; Assert.AreEqual(expectedA, t.Transform(a)); }