Function glm::ext::is_invertible [] [src]

pub fn is_invertible<F: BaseFloat, C: GenFloatVec<F>, M: GenSquareMat<F, C>>(
    m: &M
) -> bool

Returns true if the square matrix m is invertible, i.e., its determinant does not close or equal to 0.

Example

use glm::mat2;
use glm::ext::is_invertible;

let m1 = mat2(1., 2., 3., 6.);
assert!(!is_invertible(&m1));
let m2 = mat2(1., 2., 3., 4.);
assert!(is_invertible(&m2));