Class: Fusuma::Plugin::Detectors::PinchDetector::Direction
- Inherits:
-
Object
- Object
- Fusuma::Plugin::Detectors::PinchDetector::Direction
- Defined in:
- lib/fusuma/plugin/detectors/pinch_detector.rb
Overview
direction of gesture
Constant Summary collapse
- IN =
"in"
- OUT =
"out"
Instance Method Summary collapse
- #calc ⇒ Object
-
#initialize(target:, base:) ⇒ Direction
constructor
A new instance of Direction.
- #to_s ⇒ Object
Constructor Details
#initialize(target:, base:) ⇒ Direction
Returns a new instance of Direction.
153 154 155 156 |
# File 'lib/fusuma/plugin/detectors/pinch_detector.rb', line 153 def initialize(target:, base:) @target = target.to_f @base = base.to_f end |