def intersects(self, x):
r1 = Rect(x)<EOL>if self.isEmpty or self.isInfinite or r1.isEmpty:<EOL><INDENT>return False<EOL><DEDENT>r = Rect(self)<EOL>if r.intersect(r1).isEmpty:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Check if intersection with rectangle x is not empty.