X-rays are produced when high-velocity electrons strike a metal target in an evacuated glass tube. X-ray diffraction occurs when X-rays interact with the regular arrangement of atoms in a crystal lattice, producing diffracted rays. There are three main methods used in X-ray diffraction: the Laue method uses stationary crystals and white radiation to determine crystal orientation; the rotating crystal method uses a monochromatic beam and rotating single crystal to determine structure; and the powder method bombards a powdered sample to identify crystalline materials and determine lattice parameters.