code: public static void translate2DCentreOfMassTo(IAtomContainer atomCon, Point2d p) {
          Point2d com = get2DCentreOfMass(atomCon);
          Vector2d translation = new Vector2d(p.x - com.x, p.y - com.y);
          for (IAtom atom : atomCon.atoms()) {
              if (atom.getPoint2d() != null) {
                  atom.getPoint2d().add(translation);
              }
          }
      }
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 p       Description of the Parameter