# `GSPath intersectionsWithLineFrom:to:`

*Instance Method*

Intersections between the path and a line segment.

## Declaration

```swift
func intersectionsWithLine(from startPoint: NSPoint, to endPoint: NSPoint) -> FTPointArray
```

```objc
- (FTPointArray *) intersectionsWithLineFrom:(NSPoint) startPoint to:(NSPoint) endPoint;
```

```python
intersectionsWithLineFrom_to_(startPoint: NSPoint, endPoint: NSPoint) -> FTPointArray
```

## Discussion

Returns an empty point array when there are no intersections.

## See Also

### Geometry

- [`GSPath bounds`](/Core/GlyphsCore/GSPath/bounds) — The bounds of the path.
- [`GSPath fastBounds`](/Core/GlyphsCore/GSPath/fastBounds) — The bounds of the path nodes.
- [`GSPath area`](/Core/GlyphsCore/GSPath/area) — The unsigned area enclosed by the path.
- [`GSPath length`](/Core/GlyphsCore/GSPath/length) — The length of all path segments.
- [`GSPath enclosesPath:`](/Core/GlyphsCore/GSPath/enclosesPath:) — Whether the path encloses another path.

