# `GSPointOffsetFromLine`

*Function*

Like `GSPointOnLine`, but with the returned point offset by a certain amount onto a parallel line. So, more like the inverse of `GSNearestPointOnLine`.

## Declaration

```swift
func GSPointOffsetFromLine(_ p0: NSPoint, _ p1: NSPoint, _ t: CGFloat, _ offset: CGFloat) -> NSPoint
```

```objc
NSPoint GSPointOffsetFromLine(NSPoint p0, NSPoint p1, CGFloat t, CGFloat offset);
```

```python
GSPointOffsetFromLine(p0: NSPoint, p1: NSPoint, t: float, offset: float) -> NSPoint
```

## Parameters

- `offset` — Offset to the right of the line if positive or to the left of the line if negative.

## See Also

### Curve Evaluation and Tangents

- [`GSPointOnLine`](/Core/GlyphsCore/GSPointOnLine)
- [`GSPointOffsetAtAngle`](/Core/GlyphsCore/GSPointOffsetAtAngle) — Returns a new point offset by the given distance in the direction of the given angle in radiants.
- [`GSPointAtTime`](/Core/GlyphsCore/GSPointAtTime)
- [`GSPointOnCubicPoints`](/Core/GlyphsCore/GSPointOnCubicPoints)
- [`GSPointOnCubicSegment`](/Core/GlyphsCore/GSPointOnCubicSegment)
- [`GSPointOnQuarticPoints`](/Core/GlyphsCore/GSPointOnQuarticPoints)
- [`GSPointOnQuarticSegment`](/Core/GlyphsCore/GSPointOnQuarticSegment)
- [`GSPointOnQuadraticPoints`](/Core/GlyphsCore/GSPointOnQuadraticPoints)
- [`GSTangentOnQuadraticPoints`](/Core/GlyphsCore/GSTangentOnQuadraticPoints)
- [`GSTangentOnQuadraticSegment`](/Core/GlyphsCore/GSTangentOnQuadraticSegment)
- [`GSTangentOnCubicSegment`](/Core/GlyphsCore/GSTangentOnCubicSegment)
- [`GSTangentOnCubicPoints`](/Core/GlyphsCore/GSTangentOnCubicPoints)
- [`GSTangentOnQuadraticThroughPoint`](/Core/GlyphsCore/GSTangentOnQuadraticThroughPoint)

