public RotationMatrixBuilder rotateAll(){
  for (int i=0; i < dimension - 1; i++) {
    for (int j=i + 1; j < dimension; j++) {
      Plane plane=new Plane(i,j);
      plane.setTheta(PRNG.nextDouble(0.0,2.0 * Math.PI));
      planes.add(plane);
    }
  }
  return this;
}

public RotationMatrixBuilder rotateAll ( ) { for ( int i = 0 ; i < dimension - 1 ; i ++ ) { for ( int j = i + 1 ; j < dimension ; j ++ ) { Plane plane = new Plane ( i , j ) ; plane . setTheta ( PRNG . nextDouble ( 0.0 , 2.0 * Math . PI ) ) ; planes . add ( plane ) ; } } return this ; }
rotates all 2d rotation planes and assigns each a random rotation angle .
