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.
Instance Attribute Summary 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.
519 520 521 |
# File 'doc/API_reference.rb', line 519 def @timestamp end |
#x ⇒ Float (readonly)
Returns the x coordinate of the acceleration event.
510 511 512 |
# File 'doc/API_reference.rb', line 510 def x @x end |
#y ⇒ Float (readonly)
Returns the y coordinate of the acceleration event.
513 514 515 |
# File 'doc/API_reference.rb', line 513 def y @y end |
#z ⇒ Float (readonly)
Returns the z coordinate of the acceleration event.
516 517 518 |
# File 'doc/API_reference.rb', line 516 def z @z end |