code: public static Geometry translate(Geometry geom, double x, double y) {
          if (geom == null) {
              return null;
          }
          final CoordinateSequenceDimensionFilter filter =
                  new CoordinateSequenceDimensionFilter();
          geom.apply(filter);
          checkMixed(filter);
          return AffineTransformation.translationInstance(x, y).transform(geom);
      }
docs: Translates a geometry using X and Y offsets.
  
  @param geom Geometry
  @param x    X
  @param y    Y
  @return Translated geometry