docs: public void setTolerance(double tolerance)
      {
          if (Double.isNaN(tolerance) || Double.isInfinite(tolerance) || tolerance <= 0)
              throw new IllegalArgumentException("Tolerance must be positive, not " + tolerance);
          this.tolerance = tolerance;
      }