[][src]Function hektor::free_functions::determinant

pub fn determinant<M: CanDeterminant>(m: M) -> f32

Computes the determinant of a matrix.

This gives the scale factor of a unit square (or cube, or hyper-cube) in the matrix's modified coordinate space:

  • Positive means that the output orientation is generally similar.
  • Negative means that the output orientation is flipped.
  • Zero means that the output loses at least 1 dimension (meaning that hyper-cubes become cubes, squares, lines, or points).