Initializer

init(scaleByX:byY:)

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

Declaration

init(scaleByX x: CGFloat, byY y: CGFloat)

Discussion

[ x  0  0 ]
[ 0  y  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(rotationByRadians: CGFloat)

Creates an affine transformation matrix from rotation value (angle in radians). 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(translationByX: CGFloat, byY: CGFloat)

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