1
Q
查找设备的标题
A
回答
0
查看SensorManager.getOrientation它返回3个角度,围绕3个轴。
Computes the device's orientation based on the rotation matrix.
When it returns, the array values is filled with the result:
values[0]: azimuth, rotation around the Z axis.
values[1]: pitch, rotation around the X axis.
values[2]: roll, rotation around the Y axis.
The reference coordinate-system used is different from the world coordinate-system defined for the rotation matrix:
X is defined as the vector product Y.Z (It is tangential to the ground at the device's current location and roughly points West).
Y is tangential to the ground at the device's current location and points towards the magnetic North Pole.
Z points towards the center of the Earth and is perpendicular to the ground.
您需要使用地磁和加速度计传感器来提供数据以获取旋转矩阵。查看SensorManager获取更多信息
相关问题
- 1. 查找设备是否指向正确的标题/方向?
- 2. 查找键盘事件设备,鼠标
- 3. 在特定半径内查找iPhone设备/设备标记: -
- 4. 查找设备的位置
- 5. 查找标题
- 6. 查找设备宽度
- 7. 查找USB设备android
- 8. 查找设备IP J2ME
- 9. 查找设备方向
- 10. 查找设备分辨率
- 11. 从VB.net查找USB设备
- 12. 设备阶段和设备元数据:查找问题的答案
- 13. 查找设备上的文件的.lnk
- 14. 查找我的iPad/iPhone设备时,设备关闭
- 15. 已知蓝牙设备的Nodejs查找
- 16. 使用Firebase查找连接的设备
- 17. 在FreeBSD10中查找设备hostbridge的pci
- 18. 查找设备中的照片列表
- 19. 查找设备的UUID - UniqueDeviceID插件
- 20. 查找MAC地址的设备类型
- 21. 查找网络中的所有设备
- 22. UISegmentedControl设备上的Bezeled Style uncenters标题
- 23. iOS设备目标的问题
- 24. ARSCNView的根节点的“标题”不设备标题
- 25. 在目标android设备列表中找不到android设备
- 26. 使用window.Touch查找当前设备是否为移动设备
- 27. XCode调试器不帮助查找设备专用问题
- 28. playn android问题 - Netbeans找不到设备
- 29. 如何找出设备坐标
- 30. Android Studio - 没有找到目标设备