Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/georuby-ext/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#deg2rad ⇒ Object
3 4 5 |
# File 'lib/georuby-ext/core_ext.rb', line 3 def deg2rad to_f / 180.0 * Math::PI end |
#rad2deg ⇒ Object
7 8 9 |
# File 'lib/georuby-ext/core_ext.rb', line 7 def rad2deg to_f * 180.0 / Math::PI end |