Linear interpolation between this value and end at t.
end
t
Example:
double start = 10.0; double result = start.lerp(20.0, 0.5); // 15.0
double lerp(double end, double t) => this + (end - this) * t;