lerpBetween static method

Vector2 lerpBetween(
  1. Vector2 a,
  2. Vector2 b,
  3. double t
)

Implementation

static Vector2 lerpBetween(Vector2 a, Vector2 b, double t) {
  return Vector2(
    a.x + (b.x - a.x) * t,
    a.y + (b.y - a.y) * t,
  );
}