Contents

rotate(byDegrees:)

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

Declaration

func rotate(byDegrees angle: Double)

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