RelativeAngle Gesture

This API enables the user to get updates describing the relative heading and pitch of a mobile device.

Adtile Relative Heading

heading is the rotation of the side of the device, left or right, about an axis running from top to bottom of the device. The heading angle always starts at a value of 0 degrees. Tilting the device to the left causes the relative heading angle to increase, whereas tilting to the right causes the angle to increase.

The device axes are swapped from portrait and landscape modes so that the definition remains the same.

Adtile Relative Pitch

pitch is the rotation of the top of the device, up or down, about an axis running from side to side of the device. The pitch angle always starts at a value of 0 degrees. Tilting the device downward causes the relative pitch angle to decrease, whereas upward tilting causes the angle to increase.

The device axes are swapped from portrait and landscape modes so that the definition remains the same.