objective c - CGAffineTransform from two lines - each represented by a pair of CGPoints -


You can probably see where I am going - but any easy generated The way to do it is by showing a CGAffineTransform two rows - by a pair of each CP point:

  A [(a1x, a1y), (a2x, a2y)], b [(b1x , B1A), (B2X, B2A)]  

When the resulting CAPPHINE transformer will apply to line A, the line will definitely be generated. This could potentially include a translation, scale, and rotation.

Of course I would expect to be able to write this after brushing some triangles, but I was thinking that anything is already available to do this?

Note: I write this to you - I do not want to miss the core graphics move!

Yes, but there are at least four solutions: two translations and two scales (each per operation and direction ). It is without counting the changes, which translate both and scale.

, from, is a good observation of how each operation works; From that, it should be enough to make it simple and should come with a matrix for the desired operation and direction.

Of course, I hope some Trig ...

You will not need except for rotation.


Comments