lerp method

Vector2 lerp(
  1. Vector2 v,
  2. double alpha
)

Implementation

Vector2 lerp(Vector2 v, double alpha) {
  x += (v.x - x) * alpha;
  y += (v.y - y) * alpha;

  return this;
}