ramana
01-29-2004, 03:48 AM
Hi, I need to find the inverse matrix for the following transformations.
glTranslatef(float(m_ptPos.x), float(m_ptPos.y), 0.0f);
glTranslatef(float(float(m_nWidth))/2.0f, float(float(m_nHeight))/2.0f, 0.0f);
glRotatef(m_fAngle, 0.0f, 0.0f, 1.0f);
glRotatef(m_fFlipHorizontal, 0.0f, 1.0f, 0.0f);
glRotatef(m_fFlipVertical, 1.0f, 0.0f, 0.0f);
glScalef(m_fHorizontalScale, 1.0f, 0.0f);
glScalef(1.0f, m_fVerticalScale, 0.0f);
glTranslatef(-float(float(m_nWidth))/2.0f, -float(float(m_nHeight))/2.0f, 0.0f);
Can anybody tell me, how to find the inverse transformations?
glTranslatef(float(m_ptPos.x), float(m_ptPos.y), 0.0f);
glTranslatef(float(float(m_nWidth))/2.0f, float(float(m_nHeight))/2.0f, 0.0f);
glRotatef(m_fAngle, 0.0f, 0.0f, 1.0f);
glRotatef(m_fFlipHorizontal, 0.0f, 1.0f, 0.0f);
glRotatef(m_fFlipVertical, 1.0f, 0.0f, 0.0f);
glScalef(m_fHorizontalScale, 1.0f, 0.0f);
glScalef(1.0f, m_fVerticalScale, 0.0f);
glTranslatef(-float(float(m_nWidth))/2.0f, -float(float(m_nHeight))/2.0f, 0.0f);
Can anybody tell me, how to find the inverse transformations?