Get the underlying transformation matrix as a 3x3 array:: a c e b d f 0 0 1 .
(self)
| 1984 | np.array([a, c, e, b, d, f, 0.0, 0.0, 1.0], float).reshape((3, 3))) |
| 1985 | |
| 1986 | def get_matrix(self): |
| 1987 | """ |
| 1988 | Get the underlying transformation matrix as a 3x3 array:: |
| 1989 | |
| 1990 | a c e |
| 1991 | b d f |
| 1992 | 0 0 1 |
| 1993 | |
| 1994 | . |
| 1995 | """ |
| 1996 | if self._invalid: |
| 1997 | self._inverted = None |
| 1998 | self._invalid = 0 |
| 1999 | return self._mtx |
| 2000 | |
| 2001 | def set_matrix(self, mtx): |
| 2002 | """ |
no outgoing calls