Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99b930a6 authored by Anthony Stange's avatar Anthony Stange Committed by Automerger Merge Worker
Browse files

Merge "Correct ranges for pitch and roll" am: 68e87571

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438054

Change-Id: If0c6aebc7ecb401d0f68a00a746f7ae337e4bb86
parents c5f0ec65 68e87571
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1449,14 +1449,14 @@ public abstract class SensorManager {
     *                Assuming that the bottom edge of the device faces the
     *                user and that the screen is face-up, tilting the top edge
     *                of the device toward the ground creates a positive pitch
     *                angle. The range of values is -&pi; to &pi;.</li>
     *                angle. The range of values is -&pi;/2 to &pi;/2.</li>
     * <li>values[2]: <i>Roll</i>, angle of rotation about the y axis. This
     *                value represents the angle between a plane perpendicular
     *                to the device's screen and a plane perpendicular to the
     *                ground. Assuming that the bottom edge of the device faces
     *                the user and that the screen is face-up, tilting the left
     *                edge of the device toward the ground creates a positive
     *                roll angle. The range of values is -&pi;/2 to &pi;/2.</li>
     *                roll angle. The range of values is -&pi; to &pi;.</li>
     * </ul>
     * <p>
     * Applying these three rotations in the azimuth, pitch, roll order