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

TestStaticFn_Min() private method

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

                Vector3 result;
                Vector3.Min (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