pub fn mat3_det<T>(mat: [[T; 3]; 3]) -> Twhere T: Copy + Add<Output = T> + Mul<Output = T> + Sub<Output = T>,
Computes the determinant of a matrix.