pub fn inverse(&self) -> Matrix4x4 {
        let inv = m::mat4_inv(self.to_array());
        Matrix4x4 {
            a1:  inv[0][0], a2: inv[0][1], a3: inv[0][2], a4: inv[0][3],
            b1:  inv[1][0], b2: inv[1][1], b3: inv[1][2], b4: inv[1][3],
            c1:  inv[2][0], c2: inv[2][1], c3: inv[2][2], c4: inv[2][3],
            d1:  inv[3][0], d2: inv[3][1], d3: inv[3][2], d4: inv[3][3],
        }
    }
/// Compute the inverse of a 4x4 matrix
Compute the inverse of a 4x4 matrix
Compute the inverse of a 4x4 matrix
pub fn inverse(&self) -> Matrix4x4 {
        let inv = m::mat4_inv(self.to_array());
        Matrix4x4 {
            a1:  inv[0][0], a2: inv[0][1], a3: inv[0][2], a4: inv[0][3],
            b1:  inv[1][0], b2: inv[1][1], b3: inv[1][2], b4: inv[1][3],
            c1:  inv[2][0], c2: inv[2][1], c3: inv[2][2], c4: inv[2][3],
            d1:  inv[3][0], d2: inv[3][1], d3: inv[3][2], d4: inv[3][3],
        }
    }
pub fn inverse ( & self ) -> Matrix4x4 { let inv = m :: mat4_inv ( self . to_array ( ) ) ; Matrix4x4 { a1 : inv [ 0 ] [ 0 ] , a2 : inv [ 0 ] [ 1 ] , a3 : inv [ 0 ] [ 2 ] , a4 : inv [ 0 ] [ 3 ] , b1 : inv [ 1 ] [ 0 ] , b2 : inv [ 1 ] [ 1 ] , b3 : inv [ 1 ] [ 2 ] , b4 : inv [ 1 ] [ 3 ] , c1 : inv [ 2 ] [ 0 ] , c2 : inv [ 2 ] [ 1 ] , c3 : inv [ 2 ] [ 2 ] , c4 : inv [ 2 ] [ 3 ] , d1 : inv [ 3 ] [ 0 ] , d2 : inv [ 3 ] [ 1 ] , d3 : inv [ 3 ] [ 2 ] , d4 : inv [ 3 ] [ 3 ] , } }
Compute the inverse of a 4x4 matrix
Compute the inverse of a 4x4 matrix
&self
&self