VectorMath.DVector2.Lerp C# (CSharp) Method

Lerp() public static method

public static Lerp ( DVector2 from, DVector2 to, double t ) : DVector2
from DVector2
to DVector2
t double
return 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));
        }