# `GSPath isEqualToPath:`

*Instance Method*

Whether another path has the same closed state, node count, and node positions.

## Declaration

```swift
func isEqual(to otherPath: GSPath) -> Bool
```

```objc
- (BOOL) isEqualToPath:(GSPath *) otherPath;
```

```python
isEqualToPath_(otherPath: GSPath) -> bool
```

## Discussion

Node positions are compared with a small tolerance. Node types, connections, and attributes are not compared.

## See Also

### Equality and Comparison

- [`GSPath compareHash`](/Core/GlyphsCore/GSPath/compareHash) — A geometric hash for matching paths with the same node structure.
- [`GSPath nodeIndexForHash:callback:`](/Core/GlyphsCore/GSPath/nodeIndexForHash:callback:) — Enumerates matching node positions for a geometric hash.
- [`GSPath transformForHash:`](/Core/GlyphsCore/GSPath/transformForHash:) — A transform that maps a geometric hash to the matching position on the path.

