Module: MinMaxHelpers

Included in:
Rect, Vector2
Defined in:
lib/gamebox/lib/min_max_helpers.rb

Instance Method Summary collapse

Instance Method Details

#max(a, b) ⇒ Object



5
6
7
# File 'lib/gamebox/lib/min_max_helpers.rb', line 5

def max(a,b)
  a > b ? a : b
end

#min(a, b) ⇒ Object



2
3
4
# File 'lib/gamebox/lib/min_max_helpers.rb', line 2

def min(a,b)
  a < b ? a : b
end