For a floating body to be in equilibrium