code: public static double det( DMatrix2x2 mat ) {
  
          return mat.a11*mat.a22 - mat.a12*mat.a21;
      }
docs: Computes the determinant using minor matrices.<br>
  WARNING: Potentially less stable than using LU decomposition.
  
  @param mat Input matrix.  Not modified.
  @return The determinant.