lerp static method

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

Implementation

static Vector2 lerp(Vector2 a, Vector2 b, double t) {
  return a + (b - a).scaled(t);
}