Returns an affine transformation matrix constructed from values you provide.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
The value at position [1,1] in the matrix.
The value at position [1,2] in the matrix.
The value at position [2,1] in the matrix.
The value at position [2,2] in the matrix.
The value at position [3,1] in the matrix.
The value at position [3,2] in the matrix.
A new affine transform matrix constructed from the values you specify.
This function creates a
CGAffine structure that represents a new affine transformation matrix, which you can use (and reuse, if you want) to transform a coordinate system. The matrix takes the following form:
Because the third column is always
CGAffine data structure returned by this function contains values for only the first two columns.
If you want only to transform an object to be drawn, it is not necessary to construct an affine transform to do so. The most direct way to transform your drawing is by calling the appropriate
CGContext function to adjust the current transformation matrix. For a list of functions, see CGContext.