Instance Method インスタンスメソッド

rotate(byDegrees:)

Mutates an affine transformation matrix from a rotation value (angle α in degrees). アフィン変換マトリックスを回転値(度数での角度α)から変化させます。

Declaration 宣言

mutating func rotate(byDegrees angle: CGFloat)

Discussion 議論

The matrix takes the following form: マトリックスは以下の形式をとります:


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

See Also 参照

Accumulating Tranformations 変換の蓄積