Web features explorer

Orientation Sensor

Limited availability
Tags: api Groups: Sensors

The AbsoluteOrientationSensor and RelativeOrientationSensor APIs describe the physical orientation of a device in three-dimensional space, either in relation to the Earth's coordinate system or in relation to the device's own orientation, respectively. To learn more, see AbsoluteOrientationSensor, AbsoluteOrientationSensor: AbsoluteOrientationSensor() constructor, OrientationSensor, OrientationSensor: populateMatrix() method, OrientationSensor: quaternion property, RelativeOrientationSensor, RelativeOrientationSensor: RelativeOrientationSensor() constructor at MDN.

Compatibility