Abacus.DoublePrecision.Vector3Tests.TestStaticFn_Dot_i C# (CSharp) Method

TestStaticFn_Dot_i() private method

private TestStaticFn_Dot_i ( ) : void
return void
        public void TestStaticFn_Dot_i ()
        {
            for(Int32 i = 0; i < 100; ++i)
            {
                Vector3 a = GetNextRandomVector3();
                Vector3 b = GetNextRandomVector3();

                Double expected = (a.X * b.X) + (a.Y * b.Y) + (a.Z * b.Z);
                Double result; Vector3.Dot(ref a, ref b, out result);

                Assert.That(result, Is.EqualTo(expected));
            }
        }
Vector3Tests