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