You can probably see where I am going with this - but is there any easy way to generate a CGAffineTransform from two lines - each represented by a pair of CGPoints:
A[(a1x,a1y), (a2x,a2y)],
B[(b1x,b1y), (b2x,b2y)]
The resultant CGAffineTransform when applied to line A would of course produce line B. It potentially could involve a translation, scale, and rotation.
Certainly I would hope to be able to write this myself after brushing up on some trig but I was wondering if anything is already available to do this?
Note: I am not asking you to write this for me - I just don't want to miss a Core Graphics trick!