Contents

rotate(byRadians:)

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

Declaration

func rotate(byRadians angle: Double)

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