The influence of hexagonal anisotropy on the magnetic structure of antiferromagnetic rare earth metals and alloys