Declaration

func calculateIntersections(for path: GSPath, start startPoint: NSPoint, end endPoint: NSPoint) -> FTPointArray

Declaration

- (FTPointArray *) calculateIntersectionsForPath:(GSPath *) path startPoint:(NSPoint) startPoint endPoint:(NSPoint) endPoint;

Declaration

calculateIntersectionsForPath_startPoint_endPoint_(path: GSPath, startPoint: NSPoint, endPoint: NSPoint) -> FTPointArray

Parameters

path

The path to inspect.

startPoint

The start of the line segment in layer coordinates.

endPoint

The 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:to:)intersectionsWithLineFrom:to:intersectionsWithLineFrom_to_ instead.