Sha256: d68f44f78775e7cf4503cc5b34a2e35e840c62c923082a1aa9279b6785365b1a

Contents?: true

Size: 236 Bytes

Versions: 2

Compression:

Stored size: 236 Bytes

Contents

class Numeric

  def half
    self / 2
  end

  def to_pixels
    self * 32.0
  end

  def from_pixels
    self / 32.0
  end

  def to_radians
    self * (Math::PI / 180) 
  end

  def from_radians
    self * (180 / Math::PI)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
joybox-1.1.1 motion/joybox/common/numeric.rb
joybox-1.1.0 motion/joybox/common/numeric.rb