code: public Matrix4d getRepeatTransform(int repeat){
  
  		Matrix4d transform = new Matrix4d();
  		transform.setIdentity();
  
  		int[] counts = getAxisCounts(repeat);
  
  		for(int t = counts.length-1; t>=0; t--) {
  			if( counts[t] == 0 )
  				continue;
  			Matrix4d axis = new Matrix4d(axes.get(t).getOperator());
  			for(int i=0;i<counts[t];i++) {
  				transform.mul(axis);
  			}
  		}
  		return transform;
  	}
docs: Return the transformation that needs to be applied to a
  repeat in order to superimpose onto repeat 0.
  
  @param repeat the repeat index
  @return transformation matrix for the repeat