code: public static Geometry scale(Geometry geom, double xFactor, double yFactor, double zFactor) {
          if (geom != null) {
              Geometry scaledGeom = geom.copy();
              for (Coordinate c : scaledGeom.getCoordinates()) {
                  c.setOrdinate(Coordinate.X, c.getOrdinate(Coordinate.X) * xFactor);
                  c.setOrdinate(Coordinate.Y, c.getOrdinate(Coordinate.Y) * yFactor);
                  c.setOrdinate(Coordinate.Z, c.getOrdinate(Coordinate.Z) * zFactor);
              }
              return scaledGeom;
          } else {
              return null;
          }
      }
docs: Scales the given geometry by multiplying the coordinates by the
  indicated x, y and z scale factors.
  
  @param geom    Geometry
  @param xFactor x scale factor
  @param yFactor y scale factor
  @param zFactor z scale factor
  @return The geometry scaled by the given x, y and z scale factors