System of scan mirrors for composite motion of beam