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

TestStaticFn_Lerp_i() 개인적인 메소드

private TestStaticFn_Lerp_i ( ) : void
리턴 void
        public void TestStaticFn_Lerp_i ()
        {
            for(Int32 j = 0; j < 100; ++j)
            {
                Single delta = j;

                delta = delta / 100;

                for(Int32 i = 0; i < 100; ++i)
                {
                    Vector4 a = GetNextRandomVector4();
                    Vector4 b = GetNextRandomVector4();

                    Vector4 result;
                    Vector4.Lerp (ref a, ref b, ref delta, out result);

                    Vector4 expected = a + ( ( b - a ) * delta );

                    AssertEqualWithinReason(result, expected);
                }
            }
        }
Vector4Tests