The LinearAccelerationSensor interface of the Sensor APIs provides each reading the acceleration applied to the device along all axes, but without the contribution of gravity.
The LinearAccelerationSensor interface of the Sensor APIs provides each reading the acceleration applied to the device along all axes, but without the contribution of gravity.
Constructor.
The LinearAccelerationSensor constructor creates a new web.LinearAccelerationSensor
object which provides on each reading the acceleration applied to the device along all three axes, but without the contribution of gravity.
options Optional Options are as follows:
frequency: The desired number of times per second a sample should be taken, meaning the number of times per second that web.sensor.onreading
will be called. A whole number or decimal may be used, the latter for frequencies less than a second. The actual reading frequency depends device hardware and consequently may be less than requested.
referenceFrame: Either 'device' or 'screen'. The default is 'device'.
See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/LinearAccelerationSensor
Constructor. The LinearAccelerationSensor constructor creates a new `web.LinearAccelerationSensor` object which provides on each reading the acceleration applied to the device along all three axes, but without the contribution of gravity. options Optional Options are as follows: frequency: The desired number of times per second a sample should be taken, meaning the number of times per second that `web.sensor.onreading` will be called. A whole number or decimal may be used, the latter for frequencies less than a second. The actual reading frequency depends device hardware and consequently may be less than requested. referenceFrame: Either 'device' or 'screen'. The default is 'device'. See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/LinearAccelerationSensor`
(set-x! this val)
Property.
The x read-only property of the web.LinearAccelerationSensor
returns a double precision integer containing the linear acceleration
the device along the device's x axis.
var xLinearAccelerationSensor = linearAccelerationSensor.x
See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/x
Property. The x read-only property of the `web.LinearAccelerationSensor` returns a double precision integer containing the linear acceleration the device along the device's x axis. `var xLinearAccelerationSensor = linearAccelerationSensor.x` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/x`
(set-y! this val)
Property.
The y read-only property of the web.LinearAccelerationSensor
returns a double precision integer containing the acceleration
the device along the device's y axis.
var yAcceleration = accelerometer.y
See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/y
Property. The y read-only property of the `web.LinearAccelerationSensor` returns a double precision integer containing the acceleration the device along the device's y axis. `var yAcceleration = accelerometer.y` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/y`
(set-z! this val)
Property.
The z read-only property of the web.LinearAccelerationSensor
returns a double precision integer containing the acceleration
the device along the device's z axis.
var zAcceleration = accelerometer.z
See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/z
Property. The z read-only property of the `web.LinearAccelerationSensor` returns a double precision integer containing the acceleration the device along the device's z axis. `var zAcceleration = accelerometer.z` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/z`
(x this)
Property.
The x read-only property of the web.LinearAccelerationSensor
returns a double precision integer containing the linear acceleration
the device along the device's x axis.
var xLinearAccelerationSensor = linearAccelerationSensor.x
See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/x
Property. The x read-only property of the `web.LinearAccelerationSensor` returns a double precision integer containing the linear acceleration the device along the device's x axis. `var xLinearAccelerationSensor = linearAccelerationSensor.x` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/x`
(y this)
Property.
The y read-only property of the web.LinearAccelerationSensor
returns a double precision integer containing the acceleration
the device along the device's y axis.
var yAcceleration = accelerometer.y
See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/y
Property. The y read-only property of the `web.LinearAccelerationSensor` returns a double precision integer containing the acceleration the device along the device's y axis. `var yAcceleration = accelerometer.y` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/y`
(z this)
Property.
The z read-only property of the web.LinearAccelerationSensor
returns a double precision integer containing the acceleration
the device along the device's z axis.
var zAcceleration = accelerometer.z
See also: https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/z
Property. The z read-only property of the `web.LinearAccelerationSensor` returns a double precision integer containing the acceleration the device along the device's z axis. `var zAcceleration = accelerometer.z` See also: `https://developer.mozilla.org/en-US/docs/Web/API/LinearAccelerationSensor/z`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close