lerp method

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

Implementation

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

  return this;
}