pub fn invert_affine(matrix: &[f32; 6]) -> [f32; 6]
Inverts an affine matrix, so a destination-to-source map can be used as a source-to-destination.