PyOpenGL Get Position of Point after glRotatef()

301 views Asked by At

The program rotates a point using the glRotatef function, how can I calculate the coordinates of the point after the rotation, or is there a function in PyOpenGL to do this?

def drawPoint():

   glBegin(GL_POINTS)
   glVertex(1,0,0)
   glEnd()

def DrawGL():

   glRotatef(mymiu.Yaw, 0, -1, 0)
   glRotatef(mymiu.Pitch, 0, 0, 1)
   glRotatef(mymiu.Roll, -1, 0, 0)

   drawPoint()

the code is reduced to the essentials

How do i get the position of the Point after the Rotation?

0

There are 0 answers