Пример #1
0
            public void zero_vector_normalizes_to_zero()
            {
                var vector   = new Vector4F();
                var expected = new Vector4F();

                var actual = vector.GetNormal();

                Assert.Equal(expected, actual);
            }
Пример #2
0
            public void can_normalize_sample()
            {
                var vector   = new Vector4F(3.0f, 4, 5, -6);
                var expected = vector.GetQuotient(vector.GetMagnitude());

                var actual = vector.GetNormal();

                Assert.Equal(expected, actual);
            }