public Mat4f setFrom(final Mat4f src) { for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { this.m[i][j] = src.get(i, j); } } return this; }
public Mat4f mul(final Mat4f r) { final Mat4f res = new Mat4f(); for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { res.set( i, j, this.m[i][0] * r.get(0, j) + this.m[i][1] * r.get(1, j) + this.m[i][2] * r.get(2, j) + this.m[i][3] * r.get(3, j)); } } return res; }