Instance Method

inverted()

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

Declaration

func inverted() -> 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 append(AffineTransform)

Mutates an affine transformation by appending the specified matrix.

func prepend(AffineTransform)

Mutates an affine transformation by prepending the specified matrix.

func invert()

Inverts the transformation matrix if possible.