public static double determinant3x3 ( final double r0c0 , final double r0c1 , final double r0c2 , final double r1c0 , final double r1c1 , final double r1c2 , final double r2c0 , final double r2c1 , final double r2c2 ) { double sum = 0.0 ; sum += r0c0 * ( ( r1c1 * r2c2 ) - ( r1c2 * r2c1 ) ) ; sum -= r0c1 * ( ( r1c0 * r2c2 ) - ( r1c2 * r2c0 ) ) ; sum += r0c2 * ( ( r1c0 * r2c1 ) - ( r1c1 * r2c0 ) ) ; return sum ; }
Calculate the determinant of the given 3x3 matrix values .