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

Method __truediv__

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

Source from the content-addressed store, hash-verified

14219 return Point(self.x - p[0], self.y - p[1])
14220
14221 def __truediv__(self, m):
14222 if hasattr(m, "__float__"):
14223 return Point(self.x * 1./m, self.y * 1./m)
14224 m1 = util_invert_matrix(m)[1]
14225 if not m1:
14226 raise ZeroDivisionError("matrix not invertible")
14227 p = Point(self)
14228 return p.transform(m1)
14229
14230 @property
14231 def abs_unit(self):

Callers

nothing calls this directly

Calls 3

transformMethod · 0.95
PointClass · 0.85
util_invert_matrixFunction · 0.85

Tested by

no test coverage detected