Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/chobo/helpers.rb

Instance Method Summary collapse

Instance Method Details

#to_degreesObject



84
85
86
# File 'lib/chobo/helpers.rb', line 84

def to_degrees
	self * 180.0 / Math::PI
end

#to_radiansObject



88
89
90
# File 'lib/chobo/helpers.rb', line 88

def to_radians
	self * Math::PI / 180.0
end