mozilla

Revision 301853 of Template:DeviceOrientationEventProperties

  • Revision slug: Template:DeviceOrientationEventProperties
  • Revision title: Template:DeviceOrientationEventProperties
  • Revision id: 301853
  • Created:
  • Creator: louisremi
  • Is current revision? No
  • Comment

Revision Content

alpha double (float) The current orientation of the device around the Z axis; that is, how far the device is rotated around a line perpendicular to the device. Read only. beta double (float) The current orientation of the device around the X axis; that is, how far the device is tipped forward or backward. Read only. gamma double (float) The current orientation of the device around the Y axis; that is, how far the device is turned left or right. Read only. absolute boolean This value is true if the orientation is provided as a difference between the device coordinate frame and the Earth coordinate frame; if the device can't detect the Earth coordinate frame, this value is false. Read only.

Revision Source

<tr>
  <td><code>alpha</code></td>
  <td>double (float)</td>
  <td>The current orientation of the device around the Z axis; that is, how far the device is rotated around a line perpendicular to the device. Read only.</td>
</tr>
<tr>
  <td><code>beta</code></td>
  <td>double (float)</td>
  <td>The current orientation of the device around the X axis; that is, how far the device is tipped forward or backward. Read only.</td>
</tr>
<tr>
  <td><code>gamma</code></td>
  <td>double (float)</td>
  <td>The current orientation of the device around the Y axis; that is, how far the device is turned left or right. Read only.</td>
</tr>
<tr>
  <td><code>absolute</code></td>
  <td>boolean</td>
  <td>This value is <code>true</code> if the orientation is provided as a difference between the device coordinate frame and the Earth coordinate frame; if the device can't detect the Earth coordinate frame, this value is <code>false</code>. Read only.</td>
</tr>