filter static method
Interpolates a double between a
and b
according to the
filterFactor
, which should be in the range of 0.0 to 1.0.
Implementation
static double filter(double a, double b, double filterFactor) {
return (a * (1 - filterFactor)) + b * filterFactor;
}