Bragg's Law explains the relationship between the wavelength of the rays, the diffraction angle, and the lattice spacing in the substance. The interference patterns are then detected by a DETECTION BOARD and processed to produce a graphical data set of the lattice structures. XRD is also more often than not a useful tool for sample identification due to the fact that minerals all possess unique d-spacings. Therefore, the collected XRD can be compared with known data to analyze the angle and intensity and determine a match.