Abacus.SinglePrecision.Vector4Tests.TestStaticFn_Hermite_i C# (CSharp) 메소드

TestStaticFn_Hermite_i() 개인적인 메소드

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

                var c = GetNextRandomVector4();
                var d = GetNextRandomVector4();

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

                Single amount1 = 0;
                Vector4 result1;

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

                AssertEqualWithinReason(result1, a);

                Single amount2 = 1;
                Vector4 result2;

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

                AssertEqualWithinReason(result2, b);
            }
        }
Vector4Tests