CGAffineTransform order of operations Swift

115 Views Asked by At

I would like to sum up multiple posts because nothing is really clear.

  1. myCgRect.applying( CGAffineTransform(A).scaledBy(B) ) does first B and then A ?

  2. CGAffineTransform(A).concatenating(CGAffineTransform(B)) does first B then A ?

  3. CGAffineTransform(A).scaledBy(...) first scales(B) then A ?

    CGAffineTransform(A).translatedBy(...)first translates(B) then A ?

Is everything correct?

Thank you in advance :D

0

There are 0 best solutions below