Class: Numeric

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

Instance Method Summary collapse

Instance Method Details

#degreesFloat

The degrees method is used to convert from degrees to radians.

Returns:

  • (Float)


4
5
6
# File 'lib/osb/numeric.rb', line 4

def degrees
  self * Math::PI / 180
end