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

Method include_point

src/__init__.py:14694–14699  ·  view source on GitHub ↗

Extend to include point-like p.

(self, p)

Source from the content-addressed store, hash-verified

14692 return _rect_area(self.width, self.height, args)
14693
14694 def include_point(self, p):
14695 """Extend to include point-like p."""
14696 if len(p) != 2:
14697 raise ValueError("Point: bad seq len")
14698 self.x0, self.y0, self.x1, self.y1 = util_include_point_in_rect(self, p)
14699 return self
14700
14701 def include_rect(self, r):
14702 """Extend to include rect-like r."""

Callers 3

__or__Method · 0.95
test_rectFunction · 0.95
include_pointMethod · 0.45

Calls 1

Tested by 1

test_rectFunction · 0.76