我一直在试图理解这些两行代码安卓:了解功能remapCoordinateSystem
SensorManager.getRotationMatrix(RTmp, I, grav, mag);
SensorManager.remapCoordinateSystem(RTmp, SensorManager.AXIS_X,SensorManager.AXIS_MINUS_Z, Rot);
我读the documentation of remapCoordinateSystem()
,但是我很失落。
任何人都可以向我解释究竟getRotationMatrix
和remapCoordinateSystem
做什么?特别是SensorManager.AXIS_X
,SensorManager.AXIS_MINUS_Z
?
这可能有所帮助:http://android-developers.blogspot.de/2010/09/one-screen-turn-deserves-another.html – felixd 2014-01-30 19:17:11