OrientationSensor: populateMatrix() メソッド
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
OrientationSensor
インターフェイスの populateMatrix
メソッドは、指定の書き込み先行列に、センサーの最新の測定値に基づく回転行列を入れます。回転行列は以下のものです。
ただし:
- W = cos(θ/2)
- X = Vx * sin(θ/2)
- Y = Vy * sin(θ/2)
- Z = Vz * sin(θ/2)
構文
js
populateMatrix(targetMatrix)
OrientationSensor
はベースクラスなので、populateMatrix
は派生クラスからのみ読み取ることができます。
引数
targetMatrix
-
TBD
返値
なし (undefined
)
例
js
// TBD
仕様書
Specification |
---|
Orientation Sensor # orientationsensor-populatematrix |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
populateMatrix |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.