lerp method

Vector lerp (
  1. Vector to,
  2. num t
)

Implementation

Vector lerp(Vector to, num t) {
  return Vector(x + t * (to.x - x), y + t * (to.y - y));
}