# `GSPath compareHash`

*Instance Method*

A geometric hash for matching paths with the same node structure.

## Declaration

```swift
func compareHash() -> GSPathHash
```

```objc
- (GSPathHash *) compareHash;
```

```python
compareHash() -> GSPathHash
```

## See Also

### Equality and Comparison

- [`GSPath isEqualToPath:`](/Core/GlyphsCore/GSPath/isEqualToPath:) — Whether another path has the same closed state, node count, and node positions.
- [`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.

