Point filterPoint(Point a, Point b, double filterFactor)

Interpolates a Point between a and b according to the filterFactor, which should be in the range of 0.0 to 1.0.

Source

static Point filterPoint(Point a, Point b, double filterFactor) {
  return new Point(filter(a.x, b.x, filterFactor), filter(a.y, b.y, filterFactor));
}