Orientation sensor differences

If the device's sensor provides only a horizontal compass azimuth, the getPitch() and getRoll() methods of the Orientation class return Float.NaN as a sign that information is not available. If the device contains a 3D-orientation sensor, these two methods provide numeric information. The range of pitch values is [-90.0, 90.0] degrees. A negative value means that the top of the device screen is pointing towards the ground. The range of roll values is [-180.0, 180.0]. If roll values are negative, the device is orientated counter-clockwise from its default orientation.