We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 722b67a commit 7f50cb1Copy full SHA for 7f50cb1
1 file changed
src/__init__.py
@@ -12723,6 +12723,10 @@ def bottom_right(self):
12723
def height(self):
12724
return max(0, self.y1 - self.y0)
12725
12726
+ def contains(self, x):
12727
+ """Check if x is in the rectangle."""
12728
+ return self.__contains__(x)
12729
+
12730
def include_point(self, p):
12731
"""Extend rectangle to include point p."""
12732
rect = self.rect.include_point(p)
0 commit comments