class Numeric
Public Instance Methods
degrees()
click to toggle source
Convert from degrees to radians. Returns a float.
# File lib/maths-units.rb, line 16 def degrees self * Math::PI / 180.0 end
Also aliased as: deg
gradians()
click to toggle source
Convert from gradians to radians. Returns a float.
# File lib/maths-units.rb, line 25 def gradians self * Math::PI / 200.0 end
radians()
click to toggle source
Convert from radians to radians.
# File lib/maths-units.rb, line 7 def radians self end
Also aliased as: rad