'PyOpenGL Get Position of Point after glRotatef()

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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source