lerpTo method

double lerpTo(
  1. double to,
  2. double progress
)

Lerp this, to the given value, by the given progress.

Implementation

double lerpTo(double to, double progress) => this + (to - this) * progress;