Permalink
Browse files

move constant in the module of number_ext

  • Loading branch information...
1 parent f338f5c commit 1c3a3d20c38516a9da9d95cfbaefec94b28a9fac @siuying committed May 10, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/supports/number_ext.rb
@@ -1,8 +1,8 @@
-PI = 3.14159265359
-PI_HALF = 1.57079632679
-TWO_PI = 6.28318530718
-
module GameNumbers
+ PI = 3.14159265359
+ PI_HALF = 1.57079632679
+ TWO_PI = 6.28318530718
+
def to_degree
((self) / PI * 180.0)
end

0 comments on commit 1c3a3d2

Please sign in to comment.