lerpDoubles static method
Implementation
static double? lerpDoubles(num? a, num? b, double t) {
a ??= 0.0;
b ??= 0.0;
//0---0.5------1
//1---0.5------1
double scale=0;
if(t==0){
scale=1;
}
if(t>0&&t<=0.5){
scale=1-t;
}
if(t>0.5&&t<=1){
scale=t;
}
return a*scale;
}