lerp method

V2 lerp(
  1. V2 o,
  2. double amount
)

Implementation

V2 lerp(V2 o, double amount) => _v2(
  x + amount*(o.x - x),
  y + amount*(o.y - y),
);