pub fn invert<T>(mat: [[T; 3]; 2]) -> [[T; 3]; 2]where T: Copy + One + Add<Output = T> + Mul<Output = T> + Sub<Output = T> + Div<Output = T> + Neg<Output = T>,
Computes the inverse of a 2x3 matrix.