• Parameters

    • m: number[]

      a matrix as an array of numbers

    Returns number

    the determinant of the matrix

    Description

    calculate the determinant of a 2x3 or 2x2 matrix. in the case of 2x3, the translation component is ignored.