Instance Method

rotateByDegrees:

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

Declaration

- (void)rotateByDegrees:(CGFloat)angle;

Parameters

angle

The rotation angle, measured in degrees.

Discussion

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

See Also

Accumulating Transformations

- 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.

- prependTransform:

Prepends the specified matrix to the receiver’s matrix.

- 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