My micro econ prof was trying to explain marginal analysis and he said the following:

If your marginal happiness is 0 then you are maximally happy.

I don't understand this at all. Could someone explain this to me? Thanks!