# File lib/wx/groups.rb, line 131 def compass a = degrees.abs i = (a/22.5).round % 16 %w{N NNE NE ENE E ESE SE SSE S SSW SW WSW W WNW NW NNW}[i] end