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> |
ブラウザーの互換性
Loading…