Difference between revisions of "Gyroscope:getRotationRate"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2012.8<br/>
 
'''Available since:''' Gideros 2012.8<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
Returns the device&#039;s rate of rotation around three axes in radians per second.<br />
 
Returns the device&#039;s rate of rotation around three axes in radians per second.<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
(number), (number), (number) = Gyroscope:getRotationRate()
 
(number), (number), (number) = Gyroscope:getRotationRate()
 
</source>
 
</source>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) rate of rotation around x<br/>
+
'''Returns''' (number) <translate>rate of rotation around x</translate><br/>
'''Returns''' (number) rate of rotation around y<br/>
+
'''Returns''' (number) <translate>rate of rotation around y</translate><br/>
'''Returns''' (number) rate of rotation around z<br/>
+
'''Returns''' (number) <translate>rate of rotation around z</translate><br/>

Revision as of 13:33, 23 August 2018

Available since: Gideros 2012.8

Description


Returns the device's rate of rotation around three axes in radians per second.

(number), (number), (number) = Gyroscope:getRotationRate()

Return values

Returns (number) rate of rotation around x
Returns (number) rate of rotation around y
Returns (number) rate of rotation around z