重新定义 android 方向角 "roll"

rephrase definition for android orientation angle "roll"

'roll'在android中的定义是:

angle between a plane perpendicular to the device's screen and a plane perpendicular to the ground

参见 here

也许我遗漏了什么,但似乎有许多垂直于地面的平面给出了许多不同的角度。

有人可以使用例如平行于地面或屏幕的平面、北方向、重力方向来重新表述这个定义吗?

注意!我要求用不同的词重新措辞。正如我所说的,我知道官方定义。官方定义请勿转载

来自提到的文档:

Roll, angle of rotation about the y axis. This value represents the angle between a plane perpendicular to the device's screen and a plane perpendicular to the ground.

来自另一个 doc:

Roll (degrees of rotation about the y axis). This is the angle between a plane perpendicular to the device's screen and a plane perpendicular to the ground. If you hold the device parallel to the ground with the bottom edge closest to you and tilt the left edge of the device toward the ground, the roll angle becomes positive. Tilting in the opposite direction—moving the right edge of the device toward the ground— causes the roll angle to become negative. The range of values is -90 degrees to 90 degrees.

你也可以看看picture

重要的一点是关于 y 轴。 y 轴是从屏幕底部边缘到屏幕上边缘的正轴。

----编辑----

一张图片可能更露骨here

values[2]: Roll, angle of rotation about the y axis. This value represents the angle between a plane perpendicular to the device's screen and a plane perpendicular to the ground. Assuming that the bottom edge of the device faces the user and that the screen is face-up, tilting the left edge of the device toward the ground creates a positive roll angle. The range of values is -π/2 to π/2.

此处的平面"perpendicular to the ground"只是"tilted"(滚动)设备的参考。想象一下设备平放在墙边的 table 上。如果您抬起设备的边缘使其向一侧倾斜,则滚动角就是设备平面与墙壁平面之间的角度。这是因为我们已经限制了 x 轴(俯仰),所以您看到的是滚动。现在,如果您将设备的顶部朝您的方向抬起,则滚动会保持不变,而俯仰会发生变化,因为设备沿其 y 轴仍然与墙壁保持相同的角度。