Express AffineTransform as single 4x4 matrix

Wow I’m grateful for this. I knew there would be a simple sequence of steps, I just couldn’t find the right combination.

I will code this up tomorrow and test it out. I’ll then be putting a GitHub gist up (lots of other people have asked this question online, with very little success), and finally I’ll incorporate it into a registration library I’m working on and link to it here. Hopefully the next person who comes across this question is able to find your answer.

Thank you very much!
Tom