Closed cjycsm closed 6 months ago
Here are two paths:
UIBezierPath *path1 = [UIBezierPath bezierPath]; [path1 moveToPoint:CGPointMake(0, 0)]; [path1 addLineToPoint:CGPointMake(200, 95)];
UIBezierPath *path2 = [UIBezierPath bezierPath]; [path2 moveToPoint:CGPointMake(100, 100)]; [path2 addQuadCurveToPoint:CGPointMake(200, 90) controlPoint:CGPointMake(150, 250)];
Current codes can't find intersections of these two paths.
I found that the reason was that the kCGPathElementAddQuadCurveToPoint type wasn't enumerated in boundsForElement function.
kCGPathElementAddQuadCurveToPoint
boundsForElement
Fixed in #38
Here are two paths:
Current codes can't find intersections of these two paths.
I found that the reason was that the
kCGPathElementAddQuadCurveToPoint
type wasn't enumerated inboundsForElement
function.