A unified treatment of the equation of state of hard linear bodies