Represent state with a distance object.