# `GSPath positionAtIndex:`

*Instance Method*

Position for a node index.

## Declaration

```objc
- (NSPoint) positionAtIndex:(NSInteger) idx;
```

```python
positionAtIndex_(idx: int) -> NSPoint
```

## Discussion

Closed paths wrap indexes around the node array. Open paths return the zero point for indexes outside the node array.

## See Also

### Convenience

- [`GSPath makeCornerFirstNodeIndex:endNodeIndex:`](/Core/GlyphsCore/GSPath/makeCornerFirstNodeIndex:endNodeIndex:) — Replaces a node range with a sharp corner fitted to the neighboring segments.
- [`GSPath openCornerAtNode:offset:`](/Core/GlyphsCore/GSPath/openCornerAtNode:offset:) — Opens an on-curve corner by the offset distance.
- [`GSPath removeOffcurveWithStartIdx:endIdx:`](/Core/GlyphsCore/GSPath/removeOffcurveWithStartIdx:endIdx:) — Removes an off-curve node range from a quadratic segment.

