Instance Method

append(_:)

Appends the specified matrix to the receiver’s matrix.

Declaration

macOS
func append(_ transform: AffineTransform)
UIKit for Mac
func append(_ transform: NSAffineTransform)

Parameters

aTransform

The matrix to append to the receiver.

Discussion

This method multiplies the receiver's matrix by the matrix in aTransform and replaces the receiver's matrix with the results. This type of operation is the same as applying the transformations in the receiver followed by the transformations in aTransform.

See Also

Accumulating Transformations

func rotate(byDegrees: CGFloat)

Applies a rotation factor (measured in degrees) to the receiver’s transformation matrix.

func rotate(byRadians: CGFloat)

Applies a rotation factor (measured in radians) to the receiver’s transformation matrix.

func scale(by: CGFloat)

Applies the specified scaling factor along both x and y axes to the receiver’s transformation matrix.

func scaleX(by: CGFloat, yBy: CGFloat)

Applies scaling factors to each axis of the receiver’s transformation matrix.

func translateX(by: CGFloat, yBy: CGFloat)

Applies the specified translation factors to the receiver’s transformation matrix.

func prepend(AffineTransform)

Prepends the specified matrix to the receiver’s matrix.

func invert()

Replaces the receiver’s matrix with its inverse matrix.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software