code: public void addTranslation(double[] v) {
      if(trans == null) {
        trans = new AffineTransformation(dim);
      }
      trans.addTranslation(v);
    }
docs: Add a translation to the generator
  
  @param v translation double[]