Class: Touch::Position
Overview
Class representing a touch position
Instance Attribute Summary collapse
-
#x ⇒ Integer
readonly
Get the touch x position.
-
#y ⇒ Integer
readonly
Get the touch y position.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Position
constructor
Create a new Position.
Constructor Details
#initialize(x, y) ⇒ Position
Create a new Position
3339 3340 |
# File 'docs/0_Dependencies.rb', line 3339 def initialize(x, y) end |
Instance Attribute Details
#x ⇒ Integer (readonly)
Get the touch x position
3332 3333 3334 |
# File 'docs/0_Dependencies.rb', line 3332 def x @x end |
#y ⇒ Integer (readonly)
Get the touch y position
3335 3336 3337 |
# File 'docs/0_Dependencies.rb', line 3335 def y @y end |