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

Method include_rect

src/__init__.py:17301–17304  ·  view source on GitHub ↗

Extend rectangle to include rectangle r.

(self, r)

Source from the content-addressed store, hash-verified

17299 return rect.irect
17300
17301 def include_rect(self, r):
17302 """Extend rectangle to include rectangle r."""
17303 rect = self.rect.include_rect(r)
17304 return rect.irect
17305
17306 def intersect(self, r):
17307 """Restrict rectangle to intersection with rectangle r."""

Callers 1

test_irectFunction · 0.95

Calls 1

include_rectMethod · 0.45

Tested by 1

test_irectFunction · 0.76