Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/salamander/support/radians.rb
Instance Method Summary collapse
-
#degrees ⇒ Object
Does nothing - input is assumed to be degrees already.
-
#radians ⇒ Object
Converts from radians to degrees.
Instance Method Details
#degrees ⇒ Object
Does nothing - input is assumed to be degrees already
8 9 10 |
# File 'lib/salamander/support/radians.rb', line 8 def degrees self end |
#radians ⇒ Object
Converts from radians to degrees.
3 4 5 |
# File 'lib/salamander/support/radians.rb', line 3 def radians self * 180.0 / Math::PI end |