lerp method

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

Implementation

Vector3D lerp(Vector3D o, double amount) => .vec3(
  x + amount*(o.x - x),
  y + amount*(o.y - y),
  z + amount*(o.z - z),
);