# `GSPath tangentAngleAtNodeAtIndex:direction:`

*Instance Method*

The tangent angle at a node index.

## Declaration

```objc
- (CGFloat) tangentAngleAtNodeAtIndex:(NSInteger) idx direction:(int) direction;
```

```python
tangentAngleAtNodeAtIndex_direction_(idx: int, direction: int) -> float
```

## Discussion

Nonnegative direction values use following nodes. Negative direction values use preceding nodes.

Returns `NSNotFound` when no tangent can be determined.

## See Also

### Tangents

- [`GSPath tangentAngleAtNode:direction:`](/Core/GlyphsCore/GSPath/tangentAngleAtNode:direction:) — The tangent angle at a node.
- [`GSPath unitVectorAtNodeAtIndex:`](/Core/GlyphsCore/GSPath/unitVectorAtNodeAtIndex:) — The tangent unit vector at a node index.
- [`GSPath unitVectorAtNodeAtIndex:direction:`](/Core/GlyphsCore/GSPath/unitVectorAtNodeAtIndex:direction:) — The tangent unit vector at a node index.

