Abacus.DoublePrecision.Vector4Tests.TestStaticFn_Distance_ii C# (CSharp) Method

TestStaticFn_Distance_ii() private method

private TestStaticFn_Distance_ii ( ) : void
return void
        public void TestStaticFn_Distance_ii ()
        {
            for(Int32 i = 0; i < 100; ++i)
            {
                Vector4 a = GetNextRandomVector4();

                Double expected =
                    Maths.Sqrt(
                        (a.X * a.X) + (a.Y * a.Y) +
                        (a.Z * a.Z) + (a.W * a.W));

                Assert.That(a.Length(), Is.EqualTo(expected));
            }
        }
Vector4Tests