def mathTransformToMatrix(mathTransform):
    """ Take a ShallowTransform object and return a 6-tuple. """
    m = MathTransform().compose(mathTransform.offset, mathTransform.scale, mathTransform.rotation)
    return tuple(m)