A transformation of a higher Gaussian beam in general astigmatic optical systems is described in terms of rotations in 3D space. This way is simpler than direct Fourier integral calculation and preferable for numerical simulations. Two examples of optical systems and corresponding transformations, connecting with mode converter and fractional Fourier transform, are discussed.