diff --git a/Sources/AffineTransform.swift b/Sources/AffineTransform.swift index debcf7bb..ea157908 100644 --- a/Sources/AffineTransform.swift +++ b/Sources/AffineTransform.swift @@ -110,7 +110,7 @@ extension AffineTransform { /// [ -sin α cos α 0 ] /// [ 0 0 1 ] /// ``` - public init(rotationByRadians angle: CGFloat) { + public init(rotationAngle angle: CGFloat) { let sinα = sin(angle) let cosα = cos(angle) @@ -131,7 +131,7 @@ extension AffineTransform { /// ``` public init(rotationByDegrees angle: CGFloat) { let α = angle * .pi / 180 - self.init(rotationByRadians: α) + self.init(rotationAngle: α) } } @@ -207,7 +207,7 @@ extension AffineTransform { /// ``` public mutating func rotate(byRadians angle: CGFloat) { self = concatenated( - AffineTransform(rotationByRadians: angle) + AffineTransform(rotationAngle: angle) ) } diff --git a/Sources/CGAffineTransform.swift b/Sources/CGAffineTransform.swift index 4db65189..f6853ee8 100644 --- a/Sources/CGAffineTransform.swift +++ b/Sources/CGAffineTransform.swift @@ -13,10 +13,6 @@ public extension CGAffineTransform { self.init(scaleByX: scaleX, byY: y) } - init(rotationAngle: CGFloat) { - self.init(rotationByRadians: rotationAngle) - } - var isIdentity: Bool { return self == .identity }