Kemudahan antara 2 poin

p = p1 + (p2 - p1) * t;
// With easing:
p = p1 + (p2 - p1) * EaseFunction(t); 
Wide-eyed Walrus