我想计算起点和旋转后位置之间的角度 . 在这个例子中,90度 . 设备在板上并顺时针旋转 . 设备不移动,只有电路板旋转 . 我该如何计算角度?图像展示了我的意思 . 角度可以在0到360度之间 . 如果您有疑问,请问我 .
不确定,但你应该看一下这个页面:http://developer.android.com/reference/android/hardware/SensorEvent.html#values
有一堆传感器,我认为陀螺仪可以做到这一点 .
1 回答
不确定,但你应该看一下这个页面:http://developer.android.com/reference/android/hardware/SensorEvent.html#values
有一堆传感器,我认为陀螺仪可以做到这一点 .