class Numeric
Extend Numeric
class with Math module methods.
Public Instance Methods
to_deg()
click to toggle source
Convert self to dec.
# File lib/numeric_math.rb, line 41 def to_deg self * 180.0 / Math::PI end
to_rad()
click to toggle source
Convert self to rad.
# File lib/numeric_math.rb, line 36 def to_rad self / 180.0 * Math::PI end