code: public void addRotation(int axis1, int axis2, double angle) {
      if(trans == null) {
        trans = new AffineTransformation(dim);
      }
      trans.addRotation(axis1, axis2, angle);
    }
docs: Apply a rotation to the generator
  
  @param axis1 First axis (0 &lt;= axis1 &lt; dim)
  @param axis2 Second axis (0 &lt;= axis2 &lt; dim)
  @param angle Angle in Radians