A characterization of modulation spaces by symplectic rotations