1
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를 참조하십시오.