interpolateInt function
Creates an integer interpolator between a and b.
Rounds the result to the nearest integer.
Implementation
Interpolator<int> interpolateInt(int a, int b) {
return (double t) => (a + (b - a) * t).round();
}
Creates an integer interpolator between a and b.
Rounds the result to the nearest integer.
Interpolator<int> interpolateInt(int a, int b) {
return (double t) => (a + (b - a) * t).round();
}