code: public static Rectangle2D getRectangle2D(IAtomContainer container) {
          double[] minmax = getMinMax(container);
          return new Rectangle2D.Double(minmax[0], minmax[1], minmax[2] - minmax[0], minmax[3] - minmax[1]);
      }
docs: Returns the 2D rectangle spanning the space occupied by the atom
  container.
  
  @param  container {@link IAtomContainer} to calculate the rectangle for
  @return           a {@link Rectangle2D} describing the space occupied