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

Method morph

src/__init__.py:14762–14768  ·  view source on GitHub ↗

Morph with matrix-like m and point-like p. Returns a new quad.

(self, p, m)

Source from the content-addressed store, hash-verified

14760 return self.x0 <= self.x1 and self.y0 <= self.y1
14761
14762 def morph(self, p, m):
14763 """Morph with matrix-like m and point-like p.
14764
14765 Returns a new quad."""
14766 if self.is_infinite:
14767 return INFINITE_QUAD()
14768 return self.quad.morph(p, m)
14769
14770 def norm(self):
14771 return math.sqrt(sum([c*c for c in self]))

Callers

nothing calls this directly

Calls 2

INFINITE_QUADFunction · 0.85
morphMethod · 0.45

Tested by

no test coverage detected