Abacus.DoublePrecision.Vector4Tests.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)
            {
                Vector4 a = GetNextRandomVector4();
                Vector4 b = a * 2;

                Vector4 result;
                Vector4.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 ));
                Assert.That(result.W, Is.EqualTo(a.W < b.W ? a.W : b.W ));
            }
        }
Vector4Tests