finding rotations

hello hope u are all well?

i got a little problem with rotations. if i translate then do a rotation then another translation i cant seem to get the new angle of the position of my object.

i can get the location transformation like this:

float[] mat = new float[16];
glGetFloatv(GL_MODELVIEW_MATRIX, mat);

mat[12] being x
mat[13] being y
mat[14] being z

are the rotation points in the matrix also? can anyone tell me how i get them out.

angle, x, y, z. is what i’m after.


It’s a little difficult to find the angle, however you can find the new axes of you transformed object. I meam, the axes before transformation are

i=(1,0,0),j=(0,1,0) and k=(0,0,1)

After transformation:


Hope this will help.