Calculate pre shearing and replace current matrix.
(self, h, v)
| 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.""" |
no outgoing calls