(x: float, y: float, matrix: list[float])
| 2559 | ] |
| 2560 | |
| 2561 | def transform(x: float, y: float, matrix: list[float]) -> tuple[float, float]: |
| 2562 | a, b, c, d, e, f = matrix |
| 2563 | return a * x + b * y + c, d * x + e * y + f |
| 2564 | |
| 2565 | matrix[2], matrix[5] = transform( |
| 2566 | -center[0] - post_trans[0], -center[1] - post_trans[1], matrix |