code: public static void translate2D(IAtomContainer atomCon, Vector2d vector) {
          for (IAtom atom : atomCon.atoms()) {
              if (atom.getPoint2d() != null) {
                  atom.getPoint2d().add(vector);
              } else {
                  logger.warn("Could not translate atom in 2D space");
              }
          }
      }
docs: Translates a molecule from the origin to a new point denoted by a vector.
  See comment for center(IAtomContainer atomCon, Dimension areaDim, HashMap renderingCoordinates) for details on coordinate sets
  
  @param  atomCon  molecule to be translated
  @param  vector   dimension that represents the translation vector