public final function isNearQuadratic( float $maxDifference = 0.15 ) : bool
   {

      if ( $this->isQuadratic() )
      {
         return true;
      }

      if ( $maxDifference >= 0.01 && $maxDifference <= 0.3 )
      {
         $diff = 1.0 + $maxDifference;
      }
      else
      {
         $diff = 1.15;
      }

      if ( $this->isPortrait() )
      {
         return ( ( 0.0 + $this->_height ) / $this->_width ) <= $diff;
      }

      return ( ( 0.0 + $this->_width ) / $this->_height ) <= $diff;

   }
public final function isNearQuadratic( float $maxDifference = 0.15 ) : bool
   {

      if ( $this->isQuadratic() )
      {
         return true;
      }

      if ( $maxDifference >= 0.01 && $maxDifference <= 0.3 )
      {
         $diff = 1.0 + $maxDifference;
      }
      else
      {
         $diff = 1.15;
      }

      if ( $this->isPortrait() )
      {
         return ( ( 0.0 + $this->_height ) / $this->_width ) <= $diff;
      }

      return ( ( 0.0 + $this->_width ) / $this->_height ) <= $diff;

   }
public final function isNearQuadratic ( float $ maxDifference = 0.15 ) : bool { if ( $ this -> isQuadratic ( ) ) { return true ; } if ( $ maxDifference >= 0.01 && $ maxDifference <= 0.3 ) { $ diff = 1.0 + $ maxDifference ; } else { $ diff = 1.15 ; } if ( $ this -> isPortrait ( ) ) { return ( ( 0.0 + $ this -> _height ) / $ this -> _width ) <= $ diff ; } return ( ( 0.0 + $ this -> _width ) / $ this -> _height ) <= $ diff ; }
Returns if the current size uses a near quadratic format. It means, if width and height
difference is lower or equal to ?? percent.

@param double $maxDifference If you want to change the allowed difference percent value you can do it here.
Valid values here are 0.01 (means 1%) to 0.3 (means 30%) default is 0.15
@return boolean
Returns if the current size uses a near quadratic format . It means if width and height difference is lower or equal to ?? percent .