@kenshirriff I had trouble wrapping my head around the mechanism. There's a diagram about halfway down the Wikipedia page that helps:

en.wikipedia.org/wiki/Attitude