Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/georuby-ext/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#deg2radObject



3
4
5
# File 'lib/georuby-ext/core_ext.rb', line 3

def deg2rad
  to_f / 180.0 * Math::PI
end

#rad2degObject



7
8
9
# File 'lib/georuby-ext/core_ext.rb', line 7

def rad2deg
  to_f * 180.0 / Math::PI 
end