Instance Method

prependTransform:

Prepends the specified matrix to the receiver’s matrix.

Declaration

- (void)prependTransform:(NSAffineTransform *)transform;

Parameters

aTransform

The matrix to prepend to the receiver.

Discussion

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

See Also

Accumulating Transformations

- rotateByDegrees:

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

- rotateByRadians:

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

- scaleBy:

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

- scaleXBy:yBy:

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

- translateXBy:yBy:

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

- appendTransform:

Appends the specified matrix to the receiver’s matrix.

- invert

Replaces the receiver’s matrix with its inverse matrix.