Esempio n. 1
0
            /// <summary>
            /// Интерполяция вектора к другому вектору
            /// </summary>
            /// <param name="v1"></param>
            /// <param name="v2"></param>
            /// <param name="amt">Value between 0.0 (old vector) and 1.0 (new vector). 0.9 is very near the new vector. 0.5 is halfway in between</param>
            /// <returns>Новый вектор</returns>
            public static Vector2D Lerp(Vector2D v1, Vector2D v2, double amt)
            {
                Vector2D tmp = new Vector2D();

                tmp = v1.CopyToVector();
                return(tmp.Lerp(v2, amt));
            }