Beispiel #1
0
        public void Vector2DotTest2()
        {
            var a = new Vector2Fix16((Fix16)1.55, (Fix16)1.55);
            var b = new Vector2Fix16((Fix16)(-1.55), (Fix16)1.55);

            var expected = (Fix16)0;
            var actual   = a.Dot(b);

            Assert.That(actual, Is.EqualTo(expected), "Vector2Fix16.Dot did not return the expected value.");
        }
Beispiel #2
0
        public void Vector2DotTest()
        {
            var a = new Vector2Fix16(Fix16.One, (Fix16)2);
            var b = new Vector2Fix16((Fix16)3, (Fix16)4);

            var expected = (Fix16)11;
            var actual   = a.Dot(b);

            Assert.That(actual, Is.EqualTo(expected), "Vector2Fix16.Dot did not return the expected value.");
        }