lerpVectors method

Vector3 lerpVectors(
  1. Vector3 v1,
  2. Vector3 v2,
  3. num alpha
)

Implementation

Vector3 lerpVectors(Vector3 v1, Vector3 v2, num alpha) {
  x = v1.x + (v2.x - v1.x) * alpha;
  y = v1.y + (v2.y - v1.y) * alpha;
  z = v1.z + (v2.z - v1.z) * alpha;

  return this;
}