Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/geo_foo/numeric.rb

Instance Method Summary collapse

Instance Method Details

#to_degObject



5
6
7
# File 'lib/geo_foo/numeric.rb', line 5

def to_deg
  self * (180 / Math::PI)
end

#to_radObject



2
3
4
# File 'lib/geo_foo/numeric.rb', line 2

def to_rad
  self * (Math::PI / 180)
end