Liking cljdoc? Tell your friends :D

web.Gyroscope

The Gyroscope interface of the Sensor APIs provides on each reading angular velocity of the device along all three axes.

The Gyroscope interface of the Sensor APIs provides on each reading
angular velocity of the device along all three axes.
raw docstring

constructorcljs

Constructor.

The Gyroscope constructor creates a new web.Gyroscope object which provides on each reading the angular velocity of the device along all three axes.

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/Gyroscope/Gyroscope

Constructor.

The Gyroscope constructor creates a new `web.Gyroscope` object which provides on each reading the angular velocity of the device along all three axes.

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/Gyroscope/Gyroscope`
sourceraw docstring

set-x!cljs

(set-x! this val)

Property.

The x read-only property of the web.Gyroscope interface returns double precision integer containing the angular velocity of the along the its x axis.

var x = gyroscope.x

See also: https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/x

Property.

The x read-only property of the `web.Gyroscope` interface returns
double precision integer containing the angular velocity of the
along the its x axis.

`var x = gyroscope.x`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/x`
sourceraw docstring

set-y!cljs

(set-y! this val)

Property.

The y read-only property of the web.Gyroscope interface returns double precision integer containing the angular velocity of the along the its y axis.

var y = gyroscope.y

See also: https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/y

Property.

The y read-only property of the `web.Gyroscope` interface returns
double precision integer containing the angular velocity of the
along the its y axis.

`var y = gyroscope.y`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/y`
sourceraw docstring

set-z!cljs

(set-z! this val)

Property.

The z read-only property of the web.Gyroscope interface returns double precision integer containing the angular velocity of the along the its z axis.

var z = gyroscope.z

See also: https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/z

Property.

The z read-only property of the `web.Gyroscope` interface returns
double precision integer containing the angular velocity of the
along the its z axis.

`var z = gyroscope.z`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/z`
sourceraw docstring

xcljs

(x this)

Property.

The x read-only property of the web.Gyroscope interface returns double precision integer containing the angular velocity of the along the its x axis.

var x = gyroscope.x

See also: https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/x

Property.

The x read-only property of the `web.Gyroscope` interface returns
double precision integer containing the angular velocity of the
along the its x axis.

`var x = gyroscope.x`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/x`
sourceraw docstring

ycljs

(y this)

Property.

The y read-only property of the web.Gyroscope interface returns double precision integer containing the angular velocity of the along the its y axis.

var y = gyroscope.y

See also: https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/y

Property.

The y read-only property of the `web.Gyroscope` interface returns
double precision integer containing the angular velocity of the
along the its y axis.

`var y = gyroscope.y`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/y`
sourceraw docstring

zcljs

(z this)

Property.

The z read-only property of the web.Gyroscope interface returns double precision integer containing the angular velocity of the along the its z axis.

var z = gyroscope.z

See also: https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/z

Property.

The z read-only property of the `web.Gyroscope` interface returns
double precision integer containing the angular velocity of the
along the its z axis.

`var z = gyroscope.z`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope/z`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close