Rectangle.php
protected function fixImprecision($input, $imprecision) {
    if ($this->delta($input) < abs($imprecision)) {
      return $input + $imprecision;
    }
    return $input;
  }
protected function fixImprecision($input, $imprecision) {
    if ($this->delta($input) < abs($imprecision)) {
      return $input + $imprecision;
    }
    return $input;
  }
protected function fixImprecision ( $ input , $ imprecision ) { if ( $ this -> delta ( $ input ) < abs ( $ imprecision ) ) { return $ input + $ imprecision ; } return $ input ; }
Performs an imprecision check on the input value and fixes it if needed.

GD that uses C floats internally, whereas we at PHP level use C doubles.
In some cases, we need to compensate imprecision.

@param float $input
The input value.
@param float $imprecision
The imprecision factor.

@return float
A value, where imprecision is added to input if the delta part of the
input is lower than the absolute imprecision.
Performs an imprecision check on the input value and fixes it if needed .