The polarization of the emitted radiation can be controlled by using permanent magnets to induce different periodic electron trajectories through the undulator. If the oscillations are confined to a plane the radiation will be linearly polarized. If the oscillation trajectory is helical, the radiation will be circularly polarized, with the handedness determined by the helix.