Bragg's Law of Diffraction
The scattering of electrons, X-rays and neutrons by crystals can be described as a reflection of the beams at planes of atoms (lattice planes), independent of the actual physical reason causing the diffraction event.
If the incident plane wave hits the crystal at an arbitrary angle, the interference of the reflected waves can be either destructive or constructive.
To obtain constructive interference, the path difference between the two incident and the scattered waves, which is 2dsin\(\theta\), has to be a multiple of the wavelength \(\lambda\). For this case, the Bragg equation gives the relation between interplanar distance d and diffraction angle \(\theta\):
$$ \rm{n}\lambda = 2 d \rm{sin}\theta$$
ED-Basics | Ewald sphere | ED vs. XRD | Examples