Skip to content

valentinradu/Pathcut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathcut

Pathcut adds intersect to CGPath, a function that returns the subpaths emerging from the intersection of two CGPaths. It uses a mixed approach: for lines and quadric curves it analytically solves the intersections and for cubic curves it uses an aproximation algorithm.

let result = path.intersect(with: otherPath)
// result is an array of CGPaths

About

CGPath intersections for iOS and macOS

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages