TYPE_ROTATION_VECTOR获取方向

时间:2015-09-23 11:32:03

标签: android orientation android-orientation

根据documentation TYPE_ORIENTATION不应再使用,而是将TYPE_ROTATION_VECTORgetRotationMatrix()remapCoordinateSystem()getOrientation()结合使用来计算

我正在获取TYPE_ROTATION_VECTOR的输出,这是一个4D四元数并将其转换为Euler。它是否正确?如果是,那么为什么以及如何将getRotationMatrix()remapCoordinateSystem()getOrientation()结合使用?

0 个答案:

没有答案