Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.opengl.Matrix;

public class Main {
    public static float[] inverseMatrix(float[] m1) {
        float[] m2 = new float[16];
        float[] m1i = new float[16];
        Matrix.transposeM(m1i, 0, m1, 0);

        Matrix.invertM(m2, 0, m1i, 0);

        float[] m2i = new float[16];
        Matrix.transposeM(m2i, 0, m2, 0);
        return m2i;
    }
}