lerpSeries static method

List<ChartPoint> lerpSeries(
  1. List<ChartPoint> from,
  2. List<ChartPoint> to,
  3. double t
)

Implementation

static List<ChartPoint> lerpSeries(
  List<ChartPoint> from,
  List<ChartPoint> to,
  double t,
) {
  final length = from.length < to.length ? from.length : to.length;
  return List.generate(length, (i) => lerpPoint(from[i], to[i], t));
}