init(rotationByRadians:)
Creates an affine transformation matrix from a rotation angle.
Declaration
init(rotationByRadians angle: CGFloat)Parameters
- angle:
The rotation angle in radians.
Discussion
The matrix takes the following form:
[ cos α sin α 0 ]
[ -sin α cos α 0 ]
[ 0 0 1 ]