Exemple #1
0
        public void Double()
        {
            var vector1 = new VectorN(2);

            vector1.SetValues(9, 3);
            vector1.Divide(3);
            Assert.AreEqual(3, vector1[0]);
            Assert.AreEqual(1, vector1[1]);
        }
Exemple #2
0
        public void Vector()
        {
            var vector1 = new VectorN(2);

            vector1.SetValues(6, 16);
            var vector2 = new VectorN(2);

            vector2.SetValues(2, 4);
            vector1.Divide(vector2);
            Assert.AreEqual(3, vector1[0]);
            Assert.AreEqual(4, vector1[1]);
        }