lerp

final static Vector2D lerp(Vector2D $self, Float x, Float y, Float amt)

Linear interpolate the vector to another vector

Parameters

x

the x component

y

the y component

amt

the amount of interpolation; some 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.