Instance Method

append(_:)

Mutates an affine transformation by appending the specified matrix.

Declaration

mutating func append(_ transform: AffineTransform)

See Also

Accumulating Tranformations

func rotate(byDegrees: CGFloat)

Mutates an affine transformation matrix from a rotation value (angle α in degrees).

func rotate(byRadians: CGFloat)

Mutates an affine transformation matrix from a rotation value (angle α in radians).

func scale(CGFloat)

Mutates an affine transformation matrix to perform the given scaling in both x and y dimensions.

func scale(x: CGFloat, y: CGFloat)

Mutates an affine transformation matrix to perform a scaling in each of the x and y dimensions.

func translate(x: CGFloat, y: CGFloat)

Mutates an affine transformation matrix to perform the given translation.

func prepend(AffineTransform)

Mutates an affine transformation by prepending the specified matrix.

func invert()

Inverts the transformation matrix if possible.

func inverted() -> AffineTransform?

Returns an inverted version of the matrix if possible, or nil if not.