jsbean / PathTools

Swift wrapper for CGPath for iOS and OSX graphics applications
MIT License
4 stars 0 forks source link

[Bezier] rotated(by:around:) #75

Closed jsbean closed 7 years ago

jsbean commented 7 years ago
extension BezierCurve {
    func rotated(by angle: Angle, around reference: Point) -> BezierCurve {
        return BezierCurve(points: points.map { $0.rotated(by: angle, around: reference) })
    }
}