Adding more matrix math functions.

Fixing build.

Change-Id: Ie0f6724ba063ada94d1d44d99bbe56e21d9bd72f
This commit is contained in:
Alex Sakhartchouk
2010-08-05 10:28:43 -07:00
parent 442a647424
commit 518f033b68
5 changed files with 149 additions and 8 deletions

View File

@@ -179,6 +179,15 @@ public class Matrix4f {
tmp.loadTranslate(x, y, z);
multiply(tmp);
}
public void transpose() {
for(int i = 0; i < 3; ++i) {
for(int j = i + 1; j < 4; ++j) {
float temp = mMat[i*4 + j];
mMat[i*4 + j] = mMat[j*4 + i];
mMat[j*4 + i] = temp;
}
}
}
final float[] mMat;
}