Add a translation in place. Returns *self*, so this method can easily be chained with more calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` and :meth:`scale`.
(self, tx, ty)
| 2085 | return self.translate(-x, -y).rotate_deg(degrees).translate(x, y) |
| 2086 | |
| 2087 | def translate(self, tx, ty): |
| 2088 | """ |
| 2089 | Add a translation in place. |
| 2090 | |
| 2091 | Returns *self*, so this method can easily be chained with more |
| 2092 | calls to :meth:`rotate`, :meth:`rotate_deg`, :meth:`translate` |
| 2093 | and :meth:`scale`. |
| 2094 | """ |
| 2095 | self._mtx[0, 2] += tx |
| 2096 | self._mtx[1, 2] += ty |
| 2097 | self.invalidate() |
| 2098 | return self |
| 2099 | |
| 2100 | def scale(self, sx, sy=None): |
| 2101 | """ |