Class: Carbuncle::Gesture::Pinch
- Defined in:
- gems/carbuncle-input/mrblib/gesture.rb
Overview
Has the information of the pinch gesture
Instance Attribute Summary collapse
-
#angle ⇒ Float
readonly
The pinch’s angle.
-
#vector ⇒ Point
readonly
The pinch vector.
Instance Method Summary collapse
-
#initialize(vector, angle) ⇒ Pinch
constructor
A new instance of Pinch.
- #inspect ⇒ Object
Methods inherited from Event
Constructor Details
#initialize(vector, angle) ⇒ Pinch
Returns a new instance of Pinch.
106 107 108 109 |
# File 'gems/carbuncle-input/mrblib/gesture.rb', line 106 def initialize(vector, angle) @vector = vector @angle = angle end |
Instance Attribute Details
#angle ⇒ Float (readonly)
The pinch’s angle
104 105 106 |
# File 'gems/carbuncle-input/mrblib/gesture.rb', line 104 def angle @angle end |
#vector ⇒ Point (readonly)
The pinch vector
101 102 103 |
# File 'gems/carbuncle-input/mrblib/gesture.rb', line 101 def vector @vector end |
Instance Method Details
#inspect ⇒ Object
111 112 113 |
# File 'gems/carbuncle-input/mrblib/gesture.rb', line 111 def inspect "Pinch(#{vector}, #{angle})" end |