# `GSDividCubicSegment`

*Function*

## Declaration

```swift
func GSDividCubicSegment(_ P: UnsafePointer<NSPoint>, _ q: UnsafeMutablePointer<NSPoint>, _ r: UnsafeMutablePointer<NSPoint>, _ t: CGFloat)
```

```objc
void GSDividCubicSegment(const NSPoint P[4], NSPoint q[4], NSPoint r[4], CGFloat t);
```

```python
GSDividCubicSegment(P: NSPoint, q: NSPoint, r: NSPoint, t: float)
```

## 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)
- [`GSDividQuarticSegment`](/Core/GlyphsCore/GSDividQuarticSegment)
- [`GSApproximateQuartic`](/Core/GlyphsCore/GSApproximateQuartic)
- [`GSQuarticToCubic`](/Core/GlyphsCore/GSQuarticToCubic) — Converts from a quartic curve segment to two cubic curve segments.
- [`GSSegmentBetweenPoints`](/Core/GlyphsCore/GSSegmentBetweenPoints)

