class Fusuma::Plugin::Detectors::PinchDetector::Direction
direction of gesture
Constants
- IN
- OUT
Public Class Methods
new(target:, base:)
click to toggle source
# File lib/fusuma/plugin/detectors/pinch_detector.rb, line 146 def initialize(target:, base:) @target = target.to_f @base = base.to_f end
Public Instance Methods
calc()
click to toggle source
# File lib/fusuma/plugin/detectors/pinch_detector.rb, line 155 def calc if @target > @base IN else OUT end end
to_s()
click to toggle source
# File lib/fusuma/plugin/detectors/pinch_detector.rb, line 151 def to_s calc end