Class: Numeric

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#degreesObject



5
6
7
# File 'lib/jruby_art/helpers/numeric.rb', line 5

def degrees
  self * 180 / Math::PI
end

#radiansObject



9
10
11
# File 'lib/jruby_art/helpers/numeric.rb', line 9

def radians
  self * Math::PI / 180
end