Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/salamander/support/radians.rb

Instance Method Summary collapse

Instance Method Details

#degreesObject

Does nothing - input is assumed to be degrees already



8
9
10
# File 'lib/salamander/support/radians.rb', line 8

def degrees
  self
end

#radiansObject

Converts from radians to degrees.



3
4
5
# File 'lib/salamander/support/radians.rb', line 3

def radians
  self * 180.0 / Math::PI
end