populateMatrix
方法在
OrientationSensor
interface populates the given target matrix with the rotation matrix based on the latest sensor reading. The rotation matrix is shown below.
其中:
If a feature policy blocks use of a feature it is because your code is inconsistent with the policies set on your server. This is not something that would ever be shown to a user. See
Feature-Policy
for implementation instructions.
orientationInstance.populateMatrix(targetMatrix)
因为
OrientationSensor
is a base class,
populateMatrix
may only be read from one of its derived classes.
TBD
// TBD
| 规范 | 状态 | 注释 |
|---|---|---|
|
Orientation Sensor
The definition of 'populateMatrix' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
populateMatrix
|
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
populateMatrix()