code: def intersect(self, r):
          
          if not len(r) == 4:
              raise ValueError("bad sequ. length")
          self.x0, self.y0, self.x1, self.y1 = TOOLS._intersect_rect(self, r)
          return self
docs: Restrict self to common area with rectangle r.