code: public static void FFTShift2D(double[][] x, Direction direction) {
          FFTShift2D(x, direction, 1);
          FFTShift2D(x, direction, 2);
      }
docs: Shift zero-frequency component to center of spectrum.
  
  @param x         Data.
  @param direction Direction.