lerp method

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

Implementation

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

  return this;
}