pub fn mat3_det<T>(mat: Matrix3<T>) -> T
    where T: Copy + Add<T, Output = T> + Mul<T, Output = T> + Sub<T, Output = T>
{
      mat[0][0] * mat[1][1] * mat[2][2]
    + mat[0][1] * mat[1][2] * mat[2][0]
    + mat[0][2] * mat[1][0] * mat[2][1]
    - mat[0][0] * mat[1][2] * mat[2][1]
    - mat[0][1] * mat[1][0] * mat[2][2]
    - mat[0][2] * mat[1][1] * mat[2][0]
}
/// Computes the determinant of a matrix.
Computes the determinant of a matrix.
Computes the determinant of a matrix .
pub fn mat3_det<T>(mat: Matrix3<T>) -> T
    where T: Copy + Add<T, Output = T> + Mul<T, Output = T> + Sub<T, Output = T>
{
      mat[0][0] * mat[1][1] * mat[2][2]
    + mat[0][1] * mat[1][2] * mat[2][0]
    + mat[0][2] * mat[1][0] * mat[2][1]
    - mat[0][0] * mat[1][2] * mat[2][1]
    - mat[0][1] * mat[1][0] * mat[2][2]
    - mat[0][2] * mat[1][1] * mat[2][0]
}
pub fn mat3_det < T > ( mat : Matrix3 < T > ) -> T where T : Copy + Add < T , Output = T > + Mul < T , Output = T > + Sub < T , Output = T > { mat [ 0 ] [ 0 ] * mat [ 1 ] [ 1 ] * mat [ 2 ] [ 2 ] + mat [ 0 ] [ 1 ] * mat [ 1 ] [ 2 ] * mat [ 2 ] [ 0 ] + mat [ 0 ] [ 2 ] * mat [ 1 ] [ 0 ] * mat [ 2 ] [ 1 ] - mat [ 0 ] [ 0 ] * mat [ 1 ] [ 2 ] * mat [ 2 ] [ 1 ] - mat [ 0 ] [ 1 ] * mat [ 1 ] [ 0 ] * mat [ 2 ] [ 2 ] - mat [ 0 ] [ 2 ] * mat [ 1 ] [ 1 ] * mat [ 2 ] [ 0 ] }
Computes the determinant of a matrix.
Computes the determinant of a matrix .
mat
Matrix3<T>
mat
Matrix3<T>