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

Method morph

src/__init__.py:17328–17334  ·  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

17326 return self.x0 <= self.x1 and self.y0 <= self.y1
17327
17328 def morph(self, p, m):
17329 """Morph with matrix-like m and point-like p.
17330
17331 Returns a new quad."""
17332 if self.is_infinite:
17333 return INFINITE_QUAD()
17334 return self.quad.morph(p, m)
17335
17336 def norm(self):
17337 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