def intersect(self, other):
        s_tr_x, s_tr_y = self.topright
        o_tr_x, o_tr_y = other.topright
        bl_x = max(self.x, other.x)
        bl_y = max(self.y, other.y)
        tr_x = min(s_tr_x, o_tr_x)
        tr_y = min(s_tr_y, o_tr_y)
        w, h = max(0, tr_x-bl_x), max(0, tr_y-bl_y)
        if not w or not h:
            return None
        return self.__class__(bl_x, bl_y, w, h)
The value of this instance (a bool).
dataset/ETHPy150Open los-cocos/cocos/cocos/rect.py/Rect.intersect--crossover with--dataset/ETHPy150Open blampe/IbPy/ib/lib/__init__.py/Boolean.booleanValue