lib/sugarcube/numeric.rb in sugarcube-0.18.9 vs lib/sugarcube/numeric.rb in sugarcube-0.18.10

- old
+ new

@@ -7,13 +7,21 @@ def radians self end alias radian radians + def in_radians + self + end + def degrees self / 180.0 * Math::PI end alias degree degrees + + def in_degrees + self * 180.0 / Math::PI + end def pi self * Math::PI end