Applies a matrix to a point.
((a,b,c,d,e,f), (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.""" |
| 25 | return (a*x+c*y+e, b*x+d*y+f) |
| 26 | |
| 27 | def apply_matrix_norm((a,b,c,d,e,f), (p,q)): |
| 28 | """Equivalent to apply_matrix_pt(M, (p,q)) - apply_matrix_pt(M, (0,0))""" |
no outgoing calls
no test coverage detected
searching dependent graphs…