code: public static double[] get2DDimension(IAtomContainer atomCon) {
          double[] minmax = getMinMax(atomCon);
          double maxX = minmax[2];
          double maxY = minmax[3];
          double minX = minmax[0];
          double minY = minmax[1];
          return new double[]{maxX - minX, maxY - minY};
      }
docs: Returns the dimension of a molecule (width/height).
  
  @param atomCon of which the dimension should be returned
  @return array containing {width, height}