lib/gamebox/lib/rect.rb
# True if the caller and the given Rect overlap (or touch) at all.
True if the caller and the given Rect overlap (or touch) at all.
True if the caller and the given Rect overlap ( or touch ) at all .
def collide_rect?(rect)
    rect = Rect.new_from_object(rect)
    ((l >= rect.l && l <= rect.r) or (rect.l >= l && rect.l <= r)) &&
    ((t >= rect.t && t <= rect.b) or (rect.t >= t && rect.t <= b))
  end
def collide_rect? ( rect ) rect = Rect . new_from_object ( rect ) ( ( l >= rect . l && l <= rect . r ) or ( rect . l >= l && rect . l <= r ) ) && ( ( t >= rect . t && t <= rect . b ) or ( rect . t >= t && rect . t <= b ) ) end
True if the caller and the given Rect overlap (or touch) at all.
True if the caller and the given Rect overlap ( or touch ) at all .
rect
<not_specific>