motion/joybox/common/numeric.rb in joybox-1.0.0 vs motion/joybox/common/numeric.rb in joybox-1.1.0

- old
+ new

@@ -1,14 +1,23 @@ -# TODO: No he podido encontrar un buen nombre para estos class Numeric - def to_pixels + def half + self / 2 + end - self / 32 + def to_pixels + self * 32.0 end def from_pixels + self / 32.0 + end - self * 32 + def to_radians + self * (Math::PI / 180) + end + + def from_radians + self * (180 / Math::PI) end end \ No newline at end of file