lerp static method

Vector3 lerp(
  1. Vector3 a,
  2. Vector3 b,
  3. double t
)

Implementation

static Vector3 lerp(Vector3 a, Vector3 b, double t) {
  return a + (b - a).scaled(t);
}