The study of the three-dimensional structure of macromolecules, particularly proteins and nucleic acids.