lerpEq method

Polynomial<T> lerpEq(
  1. Polynomial<T> other,
  2. num t
)

In-place interpolates linearly between this Polynomial and other.

Implementation

Polynomial<T> lerpEq(Polynomial<T> other, num t) {
  final add = dataType.field.add, scale = dataType.field.scale;
  binaryOperator<T>(
      this, this, other, (a, b) => add(scale(a, 1.0 - t), scale(b, t)));
  return this;
}