Esempio n. 1
0
        public void TestScale()
        {
            Vector2 vector = VecmathUtil.Scale(new Vector2(4, 2), 2.5);

            Assert.AreEqual(10, vector.X, 0.01);
            Assert.AreEqual(5, vector.Y, 0.01);
        }