Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/ruby-processing/helpers/numeric.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#degrees ⇒ Object
2 3 4 |
# File 'lib/ruby-processing/helpers/numeric.rb', line 2 def degrees self * 180 / Math::PI end |
#radians ⇒ Object
6 7 8 |
# File 'lib/ruby-processing/helpers/numeric.rb', line 6 def radians self * Math::PI / 180 end |