(x, y, matrix)
| 104 | ] |
| 105 | |
| 106 | def transform(x, y, matrix): |
| 107 | (a, b, c, d, e, f) = matrix |
| 108 | return a * x + b * y + c, d * x + e * y + f |
| 109 | |
| 110 | matrix[2], matrix[5] = transform( |
| 111 | -rotn_center[0] - post_trans[0], -rotn_center[1] - post_trans[1], matrix |
no outgoing calls