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

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