public static float[][] matrixMultiply(float[][] mat1, float[][] mat2) {
		float[][] matrix = new float[3][3];
		
		
		for(int i = 0; i < 3; i++)//row
		{
			for(int j = 0;j<3;j++)//col
			{
				matrix[i][j] = 0;
				for(int k=0;k<3;k++)//index
				{
					matrix[i][j] += mat1[k][j]*mat2[i][k];
				}
			}
		}

		return matrix;
	}