https://developer.mozilla.org/en-US/docs/Web/API/OrientationSensor/populateMatrix
OrientationSensor: populateMatrix() method - Web APIs | MDN
The populateMatrix() method of the OrientationSensor interface populates the given target matrix with the rotation matrix based on the latest sensor reading....
web apismethodmdn