Class: Fusuma::Plugin::Detectors::RotateDetector::Quantity

Inherits:
Object
  • Object
show all
Defined in:
lib/fusuma/plugin/detectors/rotate_detector.rb

Overview

quantity of gesture

Instance Method Summary collapse

Constructor Details

#initialize(angle:) ⇒ Quantity

: (angle: Float) -> void



167
168
169
# File 'lib/fusuma/plugin/detectors/rotate_detector.rb', line 167

def initialize(angle:)
  @angle = angle.abs
end

Instance Method Details

#to_fObject

: () -> Float



172
173
174
# File 'lib/fusuma/plugin/detectors/rotate_detector.rb', line 172

def to_f
  @angle.to_f
end