lerp method Null safety
The linear interpolation function.
Returns start if amount = 0 and stop if amount = 1
Implementation
static double lerp(double start, double stop, double amount) {
return (1.0 - amount) * start + amount * stop;
}
The linear interpolation function.
Returns start if amount = 0 and stop if amount = 1
static double lerp(double start, double stop, double amount) {
return (1.0 - amount) * start + amount * stop;
}