jsbean / PathTools

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

Add Path.line(start: Point, end: Point) -> Path #88

Closed jsbean closed 7 years ago

jsbean commented 7 years ago
extension Path {
    public static func line(start: Point, end: Point) -> Path {
        return Path.init([BezierCurve(start: start, end: end)])
    }
}