Abacus.SinglePrecision.Vector3Tests.TestStaticFn_Hermite_i C# (CSharp) Method

TestStaticFn_Hermite_i() private method

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

                var c = GetNextRandomVector3();
                var d = GetNextRandomVector3();

                Vector3 an; Vector3.Normalise(ref c, out an);
                Vector3 bn; Vector3.Normalise(ref d, out bn);

                Single amount1 = 0;
                Vector3 result1;

                Vector3.Hermite (
                    ref a, ref an, ref b, ref bn, ref amount1, out result1);

                AssertEqualWithinReason(result1, a);

                Single amount2 = 1;
                Vector3 result2;

                Vector3.Hermite (
                    ref a, ref an, ref b, ref bn, ref amount2, out result2);

                AssertEqualWithinReason(result2, b);
            }
        }
Vector3Tests