Merge "Correct ranges for pitch and roll"
This commit is contained in:
@@ -1440,14 +1440,14 @@ public abstract class SensorManager {
|
|||||||
* Assuming that the bottom edge of the device faces the
|
* Assuming that the bottom edge of the device faces the
|
||||||
* user and that the screen is face-up, tilting the top edge
|
* user and that the screen is face-up, tilting the top edge
|
||||||
* of the device toward the ground creates a positive pitch
|
* of the device toward the ground creates a positive pitch
|
||||||
* angle. The range of values is -π to π.</li>
|
* angle. The range of values is -π/2 to π/2.</li>
|
||||||
* <li>values[2]: <i>Roll</i>, angle of rotation about the y axis. This
|
* <li>values[2]: <i>Roll</i>, angle of rotation about the y axis. This
|
||||||
* value represents the angle between a plane perpendicular
|
* value represents the angle between a plane perpendicular
|
||||||
* to the device's screen and a plane perpendicular to the
|
* to the device's screen and a plane perpendicular to the
|
||||||
* ground. Assuming that the bottom edge of the device faces
|
* ground. Assuming that the bottom edge of the device faces
|
||||||
* the user and that the screen is face-up, tilting the left
|
* the user and that the screen is face-up, tilting the left
|
||||||
* edge of the device toward the ground creates a positive
|
* edge of the device toward the ground creates a positive
|
||||||
* roll angle. The range of values is -π/2 to π/2.</li>
|
* roll angle. The range of values is -π to π.</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
* <p>
|
* <p>
|
||||||
* Applying these three rotations in the azimuth, pitch, roll order
|
* Applying these three rotations in the azimuth, pitch, roll order
|
||||||
|
|||||||
Reference in New Issue
Block a user