Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-processing/helpers/numeric.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#degreesObject


2
3
4
# File 'lib/ruby-processing/helpers/numeric.rb', line 2

def degrees
  self * 180 / Math::PI
end

#radiansObject


6
7
8
# File 'lib/ruby-processing/helpers/numeric.rb', line 6

def radians
  self * Math::PI / 180
end