lerp method

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

Implementation

Vector3 lerp(Vector3 a, Vector3 b, double t) {
  return switch (this) {
    linear => Vector3Utils.lerp(a, b, t),
    step => a,
    cubicSpline => throw UnimplementedError(),
  };
}