CGAffineTransformConcat(_:_:)
Returns an affine transformation matrix constructed by combining two existing affine transforms.
Declaration
func CGAffineTransformConcat(_ t1: CGAffineTransform, _ t2: CGAffineTransform) -> CGAffineTransformParameters
- t1:
The first affine transform.
- t2:
The second affine transform. This affine transform is concatenated to the first affine transform.
Return Value
A new affine transformation matrix. That is, t’ = t1*t2.
Discussion
Concatenation combines two affine transformation matrices by multiplying them together. You might perform several concatenations in order to create a single affine transform that contains the cumulative effects of several transformations.
Note that matrix operations are not commutative—the order in which you concatenate matrices is important. That is, the result of multiplying matrix t1 by matrix t2 does not necessarily equal the result of multiplying matrix t2 by matrix t1.