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

Method preshear

src/__init__.py:8848–8857  ·  view source on GitHub ↗

Calculate pre shearing and replace current matrix.

(self, h, v)

Source from the content-addressed store, hash-verified

8846 return self
8847
8848 def preshear(self, h, v):
8849 """Calculate pre shearing and replace current matrix."""
8850 h = float(h)
8851 v = float(v)
8852 a, b = self.a, self.b
8853 self.a += v * self.c
8854 self.b += v * self.d
8855 self.c += h * a
8856 self.d += h * b
8857 return self
8858
8859 def pretranslate(self, tx, ty):
8860 """Calculate pre translation and replace current matrix."""

Callers 2

test_matrixFunction · 0.80
test_quadFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_matrixFunction · 0.64
test_quadFunction · 0.64