Initializer

init(rotationByRadians:)

Creates an affine transformation matrix from rotation value (angle in radians). The matrix takes the following form:

Declaration

init(rotationByRadians angle: CGFloat)

Discussion

[  cos α   sin α  0 ]
[ -sin α   cos α  0 ]
[    0       0    1 ]

See Also

Creating Transforms

init()

Creates an affine transformation matrix with identity values.

init(rotationByDegrees: CGFloat)

Creates an affine transformation matrix from a rotation value (angle in degrees). The matrix takes the following form:

init(scale: CGFloat)

Creates an affine transformation matrix from scaling a single value. The matrix takes the following form:

init(scaleByX: CGFloat, byY: CGFloat)

Creates an affine transformation matrix from scaling values. The matrix takes the following form:

init(translationByX: CGFloat, byY: CGFloat)

Creates an affine transformation matrix from translation values. The matrix takes the following form: