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

TestStaticFn_SmoothStep_i() private method

private TestStaticFn_SmoothStep_i ( ) : void
return void
        public void TestStaticFn_SmoothStep_i ()
        {
            for(Int32 i = 0; i < 100; ++i)
            {
                var a = GetNextRandomVector4();
                var b = GetNextRandomVector4();

                Double amount1 = 0;
                Vector4 result1;

                Vector4.SmoothStep (
                    ref a, ref b, ref amount1, out result1);

                AssertEqualWithinReason(result1, a);

                Double amount2 = 1;
                Vector4 result2;

                Vector4.SmoothStep (
                    ref a, ref b, ref amount2, out result2);

                AssertEqualWithinReason(result2, b);
            }
        }
Vector4Tests