Java tutorial
//package com.java2s; import android.opengl.Matrix; public class Main { public static float[] multMatrix(float[] m1, float[] m2) { // TODO float[] m1i = new float[16]; Matrix.transposeM(m1i, 0, m1, 0); float[] m2i = new float[16]; Matrix.transposeM(m2i, 0, m2, 0); float[] m3 = new float[16]; Matrix.multiplyMM(m3, 0, m1i, 0, m2i, 0); float[] m3i = new float[16]; Matrix.transposeM(m3i, 0, m3, 0); return m3i; } }