lerp method

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

Implementation

V4 lerp(V4 o, double amount) => _v4(
  x + amount*(o.x - x),
  y + amount*(o.y - y),
  z + amount*(o.z - z),
  w + amount*(o.w - w),
);