A body emits and absorbs radiant energy at equal rates when it is in equilibrium with its surroundings. Its temperature then remains constant. If the body is not at the same temperature as its surroundings there is a net flow of energy between the surroundings and the body because of unequal emission and absorption. The theory was proposed by Pierre Prévost (1751–1839) in 1791.