Determination of three dimensional arrangement of atoms in a crystal by analysis of x-ray diffraction patterns.