VectorMath.DVector2.Lerp C# (CSharp) Метод

Lerp() публичный статический Метод

public static Lerp ( DVector2 from, DVector2 to, double t ) : DVector2
from DVector2
to DVector2
t double
Результат DVector2
        public static DVector2 Lerp(DVector2 from, DVector2 to, double t)
        {
            return new DVector2(from.X + t * (to.X - from.X),
                               from.Y + t * (to.Y - from.Y));
        }