Android getOrientation()返回方位角,是正数还是负数? [英] Android getOrientation() returns azimuth, positive or negative?
本文介绍了Android getOrientation()返回方位角,是正数还是负数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设:将手机放平(与地面平行).
Assumption: the phone is held flat (parallel with the ground).
我正在使用 getRotationMatrix()
和 getOrientation(float [] R,float []值)
来获取方位角.在此假设下,方位角就是 values [0]
.
I am using getRotationMatrix()
and getOrientation (float[] R, float[] values)
to get the azimuth. Under this assumption, the azimuth is simply values[0]
.
查看全文