class Fusuma::Plugin::Detectors::RotateDetector::Direction
direction of gesture
Constants
- CLOCKWISE
- COUNTERCLOCKWISE
Public Class Methods
new(angle:)
click to toggle source
# File lib/fusuma/plugin/detectors/rotate_detector.rb, line 139 def initialize(angle:) @angle = angle.to_f end
Public Instance Methods
calc()
click to toggle source
# File lib/fusuma/plugin/detectors/rotate_detector.rb, line 147 def calc if @angle.positive? CLOCKWISE else COUNTERCLOCKWISE end end
to_s()
click to toggle source
# File lib/fusuma/plugin/detectors/rotate_detector.rb, line 143 def to_s calc end