Class: Fusuma::Plugin::Detectors::RotateDetector::Quantity
- Inherits:
-
Object
- Object
- Fusuma::Plugin::Detectors::RotateDetector::Quantity
- Defined in:
- lib/fusuma/plugin/detectors/rotate_detector.rb
Overview
quantity of gesture
Instance Method Summary collapse
-
#initialize(angle:) ⇒ Quantity
constructor
: (angle: Float) -> void.
-
#to_f ⇒ Object
: () -> Float.
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_f ⇒ Object
: () -> Float
172 173 174 |
# File 'lib/fusuma/plugin/detectors/rotate_detector.rb', line 172 def to_f @angle.to_f end |