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

TestStaticFn_Max() private method

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

                Vector3 result;
                Vector3.Max (ref a, ref b, out result);

                Assert.That(result.X, Is.EqualTo(a.X > b.X ? a.X : b.X ));
                Assert.That(result.Y, Is.EqualTo(a.Y > b.Y ? a.Y : b.Y ));
                Assert.That(result.Z, Is.EqualTo(a.Z > b.Z ? a.Z : b.Z ));
            }
        }
Vector3Tests