Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Matrix; public class Main { /** * Gets invert matrix. * * @param matrix original matrix * @return invert matrix */ public static Matrix getInvertMatrix(Matrix matrix) { Matrix invertMatrix = new Matrix(); matrix.invert(invertMatrix); return invertMatrix; } }