def transpose3(matrix):
    """Return the inversion (transpose) of 3x3 rotation matrix ``matrix``."""
    return matrix[0], matrix[3], matrix[6], matrix[1], matrix[4], matrix[7
        ], matrix[2], matrix[5], matrix[8]
