Abacus.DoublePrecision.Vector2Tests.TestStaticFn_CatmullRom_i C# (CSharp) Method

TestStaticFn_CatmullRom_i() private method

private TestStaticFn_CatmullRom_i ( ) : void
return void
        public void TestStaticFn_CatmullRom_i ()
        {
            for(Int32 i = 0; i < 100; ++i)
            {
                var a = GetNextRandomVector2();
                var b = GetNextRandomVector2();
                var c = GetNextRandomVector2();
                var d = GetNextRandomVector2();

                Double amount1 = 0;
                Vector2 result1;

                Vector2.CatmullRom (
                    ref a, ref b, ref c, ref d, ref amount1, out result1);

                AssertEqualWithinReason(result1, b);

                Double amount2 = 1;
                Vector2 result2;

                Vector2.CatmullRom (
                    ref a, ref b, ref c, ref d, ref amount2, out result2);

                AssertEqualWithinReason(result2, c);
            }
        }
Vector2Tests