public void mul(Matrix4f m1, Matrix4f m2) { float[] MulMat = new float[16]; float elMat = 0.0f; int k = 0; for (int i = 0; i <= 3; i++) { for (int j = 0; j <= 3; j++) { for (int l = 0; l <= 3; l++) { elMat += m1.M[i, l] * m2.M[l, j]; } MulMat[k] = elMat; elMat = 0.0f; k++; } } k = 0; for (int i = 0; i <= 3; i++) { for (int j = 0; j <= 3; j++) { m1.M[i, j] = MulMat[k]; k++; } } }
public void set_Renamed(Matrix4f m1) { this.M = m1.M; }