quaternion
只读特性在
OrientationSensor
interface returns a four element
数组
whose elements contain the components of the unit
quaternion
representing the device's orientation.
var quaternion = orientationInstance.quaternion
因为
OrientationSensor
is a base class,
quaternion
may only be read from one of its derived classes.
A
数组
whose values are the x, y, z, and w components of the quaternion representing the device orientation.
// TBD
| 规范 | 状态 | 注释 |
|---|---|---|
|
Orientation Sensor
The definition of 'quaternion' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
quaternion
|
Chrome 69 | Edge ≤79 | Firefox ? | IE ? | Opera 56 | Safari ? | WebView Android 69 | Chrome Android 69 | Firefox Android ? | Opera Android 48 | Safari iOS ? | Samsung Internet Android 10.0 |
完整支持
兼容性未知
OrientationSensor
quaternion