# `GSSegmentBetweenPoints`

*Function*

## Declaration

```swift
func GSSegmentBetweenPoints(_ P0: NSPoint, _ P1: NSPoint, _ P2: NSPoint, _ P3: NSPoint, _ q0: UnsafeMutablePointer<NSPoint>, _ q1: UnsafeMutablePointer<NSPoint>, _ q2: UnsafeMutablePointer<NSPoint>, _ q3: UnsafeMutablePointer<NSPoint>, _ StartRangePoint: NSPoint, _ EndRangePoint: NSPoint)
```

```objc
void GSSegmentBetweenPoints(NSPoint P0, NSPoint P1, NSPoint P2, NSPoint P3, NSPoint *q0, NSPoint *q1, NSPoint *q2, NSPoint *q3, NSPoint StartRangePoint, NSPoint EndRangePoint);
```

```python
GSSegmentBetweenPoints(P0: NSPoint, P1: NSPoint, P2: NSPoint, P3: NSPoint, q0: NSPoint, q1: NSPoint, q2: NSPoint, q3: NSPoint, StartRangePoint: NSPoint, EndRangePoint: NSPoint)
```

## See Also

### Curve Subdivision and Conversion

- [`GSHalveCubicPoints`](/Core/GlyphsCore/GSHalveCubicPoints)
- [`GSHalveCubicSegment`](/Core/GlyphsCore/GSHalveCubicSegment)
- [`GSHalveQuadraticPoints`](/Core/GlyphsCore/GSHalveQuadraticPoints)
- [`GSHalveQuadraticSegment`](/Core/GlyphsCore/GSHalveQuadraticSegment)
- [`GSQuadratic2Cubic`](/Core/GlyphsCore/GSQuadratic2Cubic)
- [`GSDividQuadraticPoints`](/Core/GlyphsCore/GSDividQuadraticPoints)
- [`GSDividQuadraticSpline`](/Core/GlyphsCore/GSDividQuadraticSpline)
- [`GSDividCubicPoints`](/Core/GlyphsCore/GSDividCubicPoints)
- [`GSDividCubicPointsTs`](/Core/GlyphsCore/GSDividCubicPointsTs)
- [`GSDividCubicSegment`](/Core/GlyphsCore/GSDividCubicSegment)
- [`GSDividQuarticSegment`](/Core/GlyphsCore/GSDividQuarticSegment)
- [`GSApproximateQuartic`](/Core/GlyphsCore/GSApproximateQuartic)
- [`GSQuarticToCubic`](/Core/GlyphsCore/GSQuarticToCubic) — Converts from a quartic curve segment to two cubic curve segments.

