Applies a rotation factor (measured in degrees) to the receiver’s transformation matrix.
SDKs
- macOS 10.0+
- Mac Catalyst 13.0+
Framework
- Foundation
Declaration
func rotate(byDegrees angle: CGFloat)
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.