Sha256: c0c1c31b1f44d1e8da313f72a89b88dd6edf2c9c67a54d7dfad214423626cc3b

Contents?: true

Size: 121 Bytes

Versions: 3

Compression:

Stored size: 121 Bytes

Contents

class Numeric #:nodoc: 
  def degrees
    self * 180 / Math::PI
  end

  def radians
    self * Math::PI / 180
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-processing-2.6.2 lib/ruby-processing/helpers/numeric.rb
ruby-processing-2.6.1 lib/ruby-processing/helpers/numeric.rb
ruby-processing-2.6.0 lib/ruby-processing/helpers/numeric.rb