A crystal diffracts waves only at angles set by its plane spacings. Build the reciprocal lattice (the map of those angles) from the real lattice, add the Ewald circle, and see which spots light up: the same rule as Bragg's law.
Quantum & Modern Physics