Instance Method
calculateIntersections(for:start:end:) calculateIntersectionsForPath:startPoint:endPoint: calculateIntersectionsForPath_startPoint_endPoint_
Deprecated
Points where a line segment intersects a path.
Declaration
func calculateIntersections(for path: GSPath, start startPoint: NSPoint, end endPoint: NSPoint) -> FTPointArrayDeclaration
- (FTPointArray *) calculateIntersectionsForPath:(GSPath *) path startPoint:(NSPoint) startPoint endPoint:(NSPoint) endPoint;Declaration
calculateIntersectionsForPath_startPoint_endPoint_(path: GSPath, startPoint: NSPoint, endPoint: NSPoint) -> FTPointArrayParameters
pathThe path to inspect.
startPointThe start of the line segment in layer coordinates.
endPointThe end of the line segment in layer coordinates.
Discussion
The returned point array does not include the line endpoints unless they intersect the path. Use intersectionsWithLine(from: