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