Class: Carbuncle::Gesture::Drag
- Defined in:
- gems/carbuncle-input/mrblib/gesture.rb
Overview
Handles the dinformation about the drag event
Instance Attribute Summary collapse
-
#angle ⇒ Float
readonly
The angle of the Drag.
-
#vector ⇒ Point
readonly
The Vector of the touch.
Instance Method Summary collapse
-
#initialize(vector, angle) ⇒ Drag
constructor
A new instance of Drag.
- #inspect ⇒ Object
Methods inherited from Event
Constructor Details
#initialize(vector, angle) ⇒ Drag
Returns a new instance of Drag.
87 88 89 90 |
# File 'gems/carbuncle-input/mrblib/gesture.rb', line 87 def initialize(vector, angle) @vector = vector @angle = angle end |
Instance Attribute Details
#angle ⇒ Float (readonly)
The angle of the Drag
85 86 87 |
# File 'gems/carbuncle-input/mrblib/gesture.rb', line 85 def angle @angle end |
#vector ⇒ Point (readonly)
The Vector of the touch
82 83 84 |
# File 'gems/carbuncle-input/mrblib/gesture.rb', line 82 def vector @vector end |
Instance Method Details
#inspect ⇒ Object
92 93 94 |
# File 'gems/carbuncle-input/mrblib/gesture.rb', line 92 def inspect "Drag(#{vector}, #{angle})" end |