示例#1
0
        private void Update(float updatePeriod)
        {
            var t = new Transformation2D();

            t.RotateLocal(-200f * updatePeriod);
            bird.TransformCenter(t);
        }
示例#2
0
        public void RotateAroundOriginTestIdentity2()
        {
            var t = new Transformation2D();

            t.RotateLocal(0f);
            var expectedM = Matrix3x2.Identity;

            Assert.AreEqual(expectedM, t);
        }
示例#3
0
        public void RotateAroundOriginTest90()
        {
            var a = Vector2.UnitX;
            var t = new Transformation2D();

            t.RotateLocal(90f);
            var expectedA = Vector2.UnitY;

            Assert.AreEqual(expectedA, t.Transform(a));
        }