concatenate(_:)
Transforms the user coordinate system in a context using a specified matrix.
Declaration
func concatenate(_ transform: CGAffineTransform)Parameters
- transform:
The transformation matrix to apply to the specified context’s current transformation matrix.
Discussion
When you call this function, it concatenates (that is, it combines) two matrices, by multiplying them together. The order in which matrices are concatenated is important, as the operations are not commutative. The resulting CTM in the context is: CTMnew = transform * CTMcontext.