Difference between revisions of "Gyroscope:getRotationRate"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")  | 
				|||
| Line 1: | Line 1: | ||
__NOTOC__  | __NOTOC__  | ||
| − | + | '''Available since:''' Gideros 2012.8<br/>  | |
| − | '''  | + | '''Class:''' [[Gyroscope]]<br/>  | 
| − | '''  | + | |
| − | ===   | + | === Description ===  | 
| − | + | Returns the device rate of rotation around three axes in radians per second.  | |
| − | Returns the device  | ||
| − | |||
<syntaxhighlight lang="lua">  | <syntaxhighlight lang="lua">  | ||
(number), (number), (number) = Gyroscope:getRotationRate()  | (number), (number), (number) = Gyroscope:getRotationRate()  | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
| − | ===   | + | |
| − | '''  | + | === Return values ===  | 
| − | '''  | + | '''Returns''' (number) rate of rotation around x<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