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

Method intersect

src/__init__.py:17306–17308  ·  view source on GitHub ↗

Restrict rectangle to intersection with rectangle r.

(self, r)

Source from the content-addressed store, hash-verified

17304 return rect.irect
17305
17306 def intersect(self, r):
17307 """Restrict rectangle to intersection with rectangle r."""
17308 return Rect.intersect(self, r).round()
17309
17310 def intersects(self, x):
17311 return Rect.intersects(self, x)

Callers

nothing calls this directly

Calls 2

roundMethod · 0.80
intersectMethod · 0.45

Tested by

no test coverage detected