How do the iPhone’s sensors work together to determine orientation? The answer is a little more complex than one might think. Here’s a shorter answer over at O’Reilly Answers, here’s the longer one at O’Reilly Radar. SPOILER: there are no secret “directional hamsters” inside. Well, not in the later models.