(self)
return (1.0 / det) * AffineTransform((
            e * k - f * h, c * h - b * k, b * f - c * e,
            f * g - d * k, a * k - c * g, c * d - a * f,
            d * h - e * g, g * b - a * h, a * e - b * d,
        ))
Returns an AffineTransform which represents this AffineTransform's inverse.
Returns an AffineTransform which represents this AffineTransform's inverse.
Returns an AffineTransform which represents this AffineTransform s inverse .
def inverse(self):
        """
        Returns an AffineTransform which represents this AffineTransform's inverse.
        """
        det = self._determinant()
        if det == 0:
            # this can happen for instance if you divide by a transform whose
            # matrix is filled with zeroes.
            raise ValueError("This AffineTransform doesn't have a valid inverse.")

        # http://en.wikipedia.org/wiki/Inverse_matrix#Inversion_of_3.C3.973_matrices
        a, b, c, d, e, f, g, h, k = self.matrix
        return (1.0 / det) * AffineTransform((
            e * k - f * h, c * h - b * k, b * f - c * e,
            f * g - d * k, a * k - c * g, c * d - a * f,
            d * h - e * g, g * b - a * h, a * e - b * d,
        ))
def inverse ( self ) : det = self . _determinant ( ) if det == 0 : # this can happen for instance if you divide by a transform whose # matrix is filled with zeroes. raise ValueError ( "This AffineTransform doesn't have a valid inverse." ) # http://en.wikipedia.org/wiki/Inverse_matrix#Inversion_of_3.C3.973_matrices a , b , c , d , e , f , g , h , k = self . matrix return ( 1.0 / det ) * AffineTransform ( ( e * k - f * h , c * h - b * k , b * f - c * e , f * g - d * k , a * k - c * g , c * d - a * f , d * h - e * g , g * b - a * h , a * e - b * d , ) )