lerp method

Vector4 lerp(
  1. Vector4 v,
  2. double alpha
)

Implementation

Vector4 lerp(Vector4 v, double alpha) {
  x += (v.x - x) * alpha;
  y += (v.y - y) * alpha;
  z += (v.z - z) * alpha;
  w += (v.w - w) * alpha;

  return this;
}