I went through apple documentation for CGAffineTransform
. But I couldn't able to figure out what are the values need to be passed to CGAffineTransformMake
method to create CGAffineTransform
.
There are six values need to be passed for creation of CGAffineTransform
. They are a,b,c,d,tx and ty.
Could anyone brief me about the parameters?
Generally speaking, unless you understand that matrix manipulations well (or are a masochist), you want to use the CGAffineTransformMake Rotation / Scale / Translation
methods which provide a much cleaner and obvious interface for the standard tasks you want to complete.
You can also chain the transformations together with CGAffineTransform Rotate / Scale / Translate
so that you can 'build' a single complex transform (or append to a previous existing transform).