Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/chobo/helpers.rb
Instance Method Summary collapse
Instance Method Details
#to_degrees ⇒ Object
84 85 86 |
# File 'lib/chobo/helpers.rb', line 84 def to_degrees self * 180.0 / Math::PI end |
#to_radians ⇒ Object
88 89 90 |
# File 'lib/chobo/helpers.rb', line 88 def to_radians self * Math::PI / 180.0 end |