Esempio n. 1
0
        public void DotProduct()
        {
            var a    = new v8 <Motion>(+1, +2, +3, +4, +5, +6);
            var b    = new v8 <Force>(-1, -2, -3, -4, -5, -6);
            var pwr0 = Math_.Dot(a, b);
            var pwr1 = Math_.Dot(b, a);

            Assert.True(Math_.FEql(pwr0, -91));
            Assert.True(Math_.FEql(pwr1, -91));
        }