MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / contains

Method contains

src/__init__.py:17288–17290  ·  view source on GitHub ↗

Check if x is in the rectangle.

(self, x)

Source from the content-addressed store, hash-verified

17286 return max(0, self.y1 - self.y0)
17287
17288 def contains(self, x):
17289 """Check if x is in the rectangle."""
17290 return self.__contains__(x)
17291
17292 def get_area(self, *args) -> float:
17293 """Calculate area of rectangle.\nparameter is one of 'px' (default), 'in', 'cm', or 'mm'."""

Callers

nothing calls this directly

Calls 1

__contains__Method · 0.95

Tested by

no test coverage detected