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

rotate(by:)

Rotates subsequent drawing operations by an angle.

Declaration 宣言

mutating func rotate(by angle: Angle)

Parameters パラメータ

angle

The amount to rotate.

Discussion 議論

Calling this method is equivalent to updating the context’s transform directly using the angle parameter:


transform = transform.rotated(by: angle.radians)

See Also 参照

Applying Transforms