lerp method
Linear interpolation between this and o by amount.
amount should be in the range [0.0, 1.0].
Implementation
V2 lerp(V2 o, double amount) => _v2(
x + amount*(o.x - x),
y + amount*(o.y - y),
);
Linear interpolation between this and o by amount.
amount should be in the range [0.0, 1.0].
V2 lerp(V2 o, double amount) => _v2(
x + amount*(o.x - x),
y + amount*(o.y - y),
);