# `GSPathSegment compare:`

*Instance Method*

## Declaration

```swift
func compare(_ otherObject: GSPathSegment) -> ComparisonResult
```

```objc
- (NSComparisonResult) compare:(GSPathSegment *) otherObject;
```

```python
compare_(otherObject: GSPathSegment) -> NSComparisonResult
```

