Class: comcom::leapmotioncom::leapmotion::leap::CircleGesture

Inherits:
Object
  • Object
show all
Defined in:
lib/reapmotion/core_ext/circle_gesture.rb

Instance Method Summary collapse

Instance Method Details

#clockwise?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


6
7
8
# File 'lib/reapmotion/core_ext/circle_gesture.rb', line 6

def counter_clockwise?
  !clock_wise?
end