Contents

init(rotationByDegrees:)

Creates an affine transformation matrix from a rotation angle.

Declaration

init(rotationByDegrees angle: CGFloat)

Parameters

  • angle:

    The rotation angle in degrees.

Discussion

The matrix takes the following form:

[  cos α   sin α  0 ]
[ -sin α   cos α  0 ]
[    0       0    1 ]

See Also

Creating Transforms