Mobile computer devices like the iPhone and iPad essentially put a PC in your pocket, letting you use a computer wherever you happen to be. However, unlike a desktop or even a laptop PC, mobile computers can track movement and orientation. This can come in handy for tracking the user’s arm movements in a game or helping you measure angles.
To track motion and orientation, every iOS device comes with a built-in accelerometer that can detect movement. In addition to the accelerometer, the iOS devices also include a gyroscope to detect positions of the iOS device. By ...