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 - 沒有找到目標設備