Class: MG::Events::Acceleration
- Inherits:
-
Object
- Object
- MG::Events::Acceleration
- Defined in:
- doc/API_reference.rb
Overview
the device, usually from the Scene#on_accelerate method.
Properties collapse
-
#timestamp ⇒ Float
readonly
The timestamp of the acceleration event.
-
#x ⇒ Float
readonly
The x coordinate of the acceleration event.
-
#y ⇒ Float
readonly
The y coordinate of the acceleration event.
-
#z ⇒ Float
readonly
The z coordinate of the acceleration event.
Instance Attribute Details
#timestamp ⇒ Float (readonly)
Returns the timestamp of the acceleration event.
517 518 519 |
# File 'doc/API_reference.rb', line 517 def @timestamp end |
#x ⇒ Float (readonly)
Returns the x coordinate of the acceleration event.
508 509 510 |
# File 'doc/API_reference.rb', line 508 def x @x end |
#y ⇒ Float (readonly)
Returns the y coordinate of the acceleration event.
511 512 513 |
# File 'doc/API_reference.rb', line 511 def y @y end |
#z ⇒ Float (readonly)
Returns the z coordinate of the acceleration event.
514 515 516 |
# File 'doc/API_reference.rb', line 514 def z @z end |