Translates a matrix by (x,y).
((a,b,c,d,e,f), (x,y))
| 17 | a0*e1+c0*f1+e0, b0*e1+d0*f1+f0) |
| 18 | |
| 19 | def translate_matrix((a,b,c,d,e,f), (x,y)): |
| 20 | """Translates a matrix by (x,y).""" |
| 21 | return (a,b,c,d,x*a+y*c+e,x*b+y*d+f) |
| 22 | |
| 23 | def apply_matrix_pt((a,b,c,d,e,f), (x,y)): |
| 24 | """Applies a matrix to a point.""" |
no outgoing calls
no test coverage detected
searching dependent graphs…