any chance to get the matrix?

hi

i need to get to the matrix data from the code below because
i search for a way to calculate the rotations of an airplane when
for example pulling the stick back.

my idea is a point z=10 away and a bit over y(=0.1)
the doing roll,pitch,yaw stuff that is working perfect for the camera
and then when i got the vector (tx,ty,tz) of the new point
i recalculate with atan2 the vr1 and vr2 .

  gl.glMatrixMode(GL.GL_MODELVIEW);
  gl.glLoadIdentity();    	  

  tx=0.0f;
          ty=0.1f;
          tz=10.0f;

  gl.glRotatef(-vr3, 0, 0, 1); 
  gl.glRotatef(-vr2, 1, 0, 0); 
  gl.glRotatef(-vr1, 0, 1, 0);

        and here i need tx,ty,tz...after the rotate stuff...

much thx for any help

p.s.:i can’t find any mathematical solutions for the
(i am in a plane) problem

To get the current modelview matrix from OpenGL you can do this:

float[] modelviewMatrix = new float[16];

gl.glGetFloatv(GL_MODELVIEW_MATRIX, modelviewMatrix, 0);