OrientationSensor: quaternion プロパティ

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

OrientationSensor インターフェイスの読み取り専用プロパティ quaternion は、各要素がデバイスの向きを表す単位四元数の成分である 4 要素の Array を返します。

OrientationSensor はベースクラスなので、quaternion は派生クラスからのみ読み取ることができます。

デバイスの向きを表す四元数の x, y, z, w 成分を値とする Array です。

js
// TBD

仕様書

Specification
Orientation Sensor
# orientationsensor-quaternion

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
quaternion

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support