module.exports = determinant /** * Calculates the determinant of a mat2 * * @alias mat2.determinant * @param {mat2} a the source matrix * @returns {Number} determinant of a */ function determinant(a) { return a[0] * a[3] - a[2] * a[1] }