Instance Method

rotateByRadians:

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

Declaration

- (void)rotateByRadians:(CGFloat)angle;

Parameters

angle

The rotation angle, measured in radians.

Discussion

After invoking this method, applying the receiver’s matrix turns the axes counterclockwise about the current origin by angle radians, in addition to performing all previous transformations.

See Also

Accumulating Transformations

- rotateByDegrees:

Applies a rotation factor (measured in degrees) 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.

- prependTransform:

Prepends the specified matrix to the receiver’s matrix.

- invert

Replaces the receiver’s matrix with its inverse matrix.