# `GSClipLineWithRect`

*Function*

## Declaration

```swift
func GSClipLineWithRect(_ start: UnsafeMutablePointer<NSPoint>, _ end: UnsafeMutablePointer<NSPoint>, _ rect: NSRect) -> Bool
```

```objc
BOOL GSClipLineWithRect(NSPoint *start, NSPoint *end, NSRect rect);
```

```python
GSClipLineWithRect(start: NSPoint, end: NSPoint, rect: NSRect) -> bool
```

## See Also

### Intersections

- [`GSIntersectCubicCubicPoints`](/Core/GlyphsCore/GSIntersectCubicCubicPoints)
- [`GSIntersectCubicCubicPointsA`](/Core/GlyphsCore/GSIntersectCubicCubicPointsA)
- [`GSIntersectCubicCubicUnlimited`](/Core/GlyphsCore/GSIntersectCubicCubicUnlimited)
- [`GSIntersectCubicCubicUnlimitedA`](/Core/GlyphsCore/GSIntersectCubicCubicUnlimitedA)
- [`GSIntersectCubicLine`](/Core/GlyphsCore/GSIntersectCubicLine) — Finds all intersections between a curve and a line.
- [`GSIntersectCubicLineA`](/Core/GlyphsCore/GSIntersectCubicLineA)
- [`GSIntersectCubicLineTimes`](/Core/GlyphsCore/GSIntersectCubicLineTimes)
- [`GSIntersectCubicLineUnlimited`](/Core/GlyphsCore/GSIntersectCubicLineUnlimited)
- [`GSIntersectCubicLineUnlimitedA`](/Core/GlyphsCore/GSIntersectCubicLineUnlimitedA)
- [`GSIntersectCubicLineUnlimitedTimes`](/Core/GlyphsCore/GSIntersectCubicLineUnlimitedTimes)
- [`GSIntersectQuadraticSplineLine`](/Core/GlyphsCore/GSIntersectQuadraticSplineLine)
- [`GSIntersectQuadraticSplineLineA`](/Core/GlyphsCore/GSIntersectQuadraticSplineLineA)
- [`GSIntersectQuadraticLineMatchEndA`](/Core/GlyphsCore/GSIntersectQuadraticLineMatchEndA)
- [`GSIntersectQuadraticLine`](/Core/GlyphsCore/GSIntersectQuadraticLine)
- [`GSIntersectQuadraticQuadraticSpline`](/Core/GlyphsCore/GSIntersectQuadraticQuadraticSpline)

