lib/gamebox/lib/rect.rb
# As #inflate!, but the original caller is not changed.
As #inflate!, but the original caller is not changed.
As #inflate! but the original caller is not changed .
def inflate(x,y)
    return self.class.new(self[0] - x.div(2),
                          self[1] - y.div(2),
                          self[2] + x,
                          self[3] + y)
  end
def inflate ( x , y ) return self . class . new ( self [ 0 ] - x . div ( 2 ) , self [ 1 ] - y . div ( 2 ) , self [ 2 ] + x , self [ 3 ] + y ) end
As #inflate!, but the original caller is not changed.
As #inflate! but the original caller is not changed .
x
<not_specific>
y
<not_specific>