Difference between revisions of "Gyroscope:getRotationRate"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2012.8<br/>
'''<translate>Available since</translate>:''' Gideros 2012.8<br/>
+
'''Class:''' [[Gyroscope]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Gyroscope|Gyroscope]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Returns the device rate of rotation around three axes in radians per second.
Returns the device&#039;s rate of rotation around three axes in radians per second.<br />
 
<br /></translate>
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(number), (number), (number) = Gyroscope:getRotationRate()
 
(number), (number), (number) = Gyroscope:getRotationRate()
 
</syntaxhighlight>
 
</syntaxhighlight>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (number) <translate>rate of rotation around x</translate><br/>
+
=== Return values ===
'''<translate>Returns</translate>''' (number) <translate>rate of rotation around y</translate><br/>
+
'''Returns''' (number) rate of rotation around x<br/>
'''<translate>Returns</translate>''' (number) <translate>rate of rotation around z</translate><br/>
+
'''Returns''' (number) rate of rotation around y<br/>
 +
'''Returns''' (number) rate of rotation around z<br/>
  
 
{{Gyroscope}}
 
{{Gyroscope}}

Latest revision as of 17:43, 12 January 2025

Available since: Gideros 2012.8
Class: Gyroscope

Description

Returns the device 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