filter static method

double filter(
  1. double a,
  2. double b,
  3. double filterFactor
)

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;
}