Exemple #1
0
 public static Vector2 Lerp(Vector2 a, Vector2 b, float t)
 {
     t = DevMath.Clamp01(t);
     Vector2 v = new Vector2((b.x - a.x), (b.y - a.y));
     return a + (v * t);
 }