예제 #1
0
            public void can_divide_vector()
            {
                var actual = new VectorF(2);

                actual.Set(0, 4.5f);
                actual.Set(1, 888f);
                var expected = new VectorF(2);

                expected.Set(0, 4.5f / 4.0f);
                expected.Set(1, 888f / 4.0f);

                actual.Divide(4);

                Assert.Equal(expected, actual);
            }