Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
return true if two bounding boxes overlap

        def bounds_overlap(bound1, bound2):
	'''return true if two bounding boxes overlap'''
	(x1,y1,w1,h1) = bound1
	(x2,y2,w2,h2) = bound2
	if x1+w1 < x2:
		return False
	if x2+w2 < x1:
		return False
	if y1+h1 < y2:
		return False
	if y2+h2 < y1:
		return False
	return True
        


src/m/a/MAVProxy-1.3.3/MAVProxy/modules/mavproxy_map/mp_slipmap.py   MAVProxy(Download)
            obj = objects[k]
            bounds2 = obj.bounds()
            if bounds2 is None or mp_util.bounds_overlap(bounds, bounds2):
                obj.draw(img, self.pixmapper, bounds)
 

src/m/a/MAVProxy-HEAD/MAVProxy/modules/mavproxy_map/mp_slipmap.py   MAVProxy(Download)
            obj = objects[k]
            bounds2 = obj.bounds()
            if bounds2 is None or mp_util.bounds_overlap(bounds, bounds2):
                obj.draw(img, self.pixmapper, bounds)