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[] scaleModel(float[] animateResult, float[] mvpMatrix) {
        float[] newMatrix = copyMatrix(mvpMatrix);
        if (animateResult != null) {
            Matrix.scaleM(newMatrix, 0, animateResult[0], animateResult[1], animateResult[2]);
        }
        return newMatrix;
    }

    private static float[] copyMatrix(float[] matrix) {
        float[] copyM = new float[matrix.length];
        for (int i = 0; i < matrix.length; i++) {
            copyM[i] = matrix[i];
        }
        return copyM;
    }
}