SkillAgentSearch skills...

Pathcut

CGPath intersections for iOS and macOS

Install / Use

/learn @valentinradu/Pathcut
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
View on GitHub
GitHub Stars14
CategoryDevelopment
Updated1mo ago
Forks1

Languages

Swift

Security Score

90/100

Audited on Feb 25, 2026

No findings