Esempio n. 1
0
            public void create_w_unit()
            {
                var expected = new Vector4F(0.0f, 0, 0, 1);

                var actual = Vector4F.CreateWUnit();

                Assert.Equal(expected, actual);
            }
Esempio n. 2
0
            public void unit_w_normalizes_to_self()
            {
                var actual   = Vector4F.CreateWUnit();
                var expected = new Vector4F(actual);

                actual.Normalize();

                Assert.Equal(expected, actual);
            }
Esempio n. 3
0
            public void unit_w_normalizes_to_self()
            {
                var vector   = Vector4F.CreateWUnit();
                var expected = new Vector4F(vector);

                var actual = vector.GetNormal();

                Assert.Equal(expected, actual);
            }