Optical pumping nuclear magnetic resonance system rotating in a plane parallel to the quantization axis