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

Method __mul__

src/__init__.py:14616–14621  ·  view source on GitHub ↗
(self, m)

Source from the content-addressed store, hash-verified

14614 return 4
14615
14616 def __mul__(self, m):
14617 if hasattr(m, "__float__"):
14618 return Rect(self.x0 * m, self.y0 * m, self.x1 * m, self.y1 * m)
14619 r = Rect(self)
14620 r = r.transform(m)
14621 return r
14622
14623 def __neg__(self):
14624 return Rect(-self.x0, -self.y0, -self.x1, -self.y1)

Callers

nothing calls this directly

Calls 2

transformMethod · 0.95
RectClass · 0.85

Tested by

no test coverage detected