ease in out two points code example Example: ease between 2 points p = p1 + (p2 - p1) * t; // With easing: p = p1 + (p2 - p1) * EaseFunction(t);