Class: comcom::leapmotioncom::leapmotion::leap::CircleGesture
- Inherits:
-
Object
- Object
- comcom::leapmotioncom::leapmotion::leap::CircleGesture
- Defined in:
- lib/reapmotion/core_ext/circle_gesture.rb
Instance Method Summary collapse
Instance Method Details
#clockwise? ⇒ Boolean
2 3 4 |
# File 'lib/reapmotion/core_ext/circle_gesture.rb', line 2 def clockwise? pointable.direction.angleTo(normal) <= Math::PI/4 end |
#counter_clockwise? ⇒ Boolean
6 7 8 |
# File 'lib/reapmotion/core_ext/circle_gesture.rb', line 6 def counter_clockwise? !clock_wise? end |