Method: MiniGL::Block#bounds

Defined in:
lib/minigl/movement.rb

#boundsObject

Returns the bounding box of this block as a Rectangle.



40
41
42
# File 'lib/minigl/movement.rb', line 40

def bounds
  Rectangle.new @x, @y, @w, @h
end