Skip to content

Commit

Permalink
fix number conversion; refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
siuying committed May 10, 2012
1 parent 1ecf066 commit deac2a6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions app/supports/object_ext.rb → app/supports/number_ext.rb
Expand Up @@ -3,11 +3,11 @@
TWO_PI = 6.28318530718

module GameNumbers
def to_rad
def to_degree
((self) / PI * 180.0)
end

def to_degree
def to_rad
((self) / 180.0 * PI)
end
end
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion vendor/BubbleWrap
Submodule BubbleWrap updated 2 files
+6 −1 lib/app.rb
+5 −3 lib/kernel.rb

0 comments on commit deac2a6

Please sign in to comment.