# `GSCompareRect`

*Function*

## Declaration

```swift
func GSCompareRect(_ r1: NSRect, _ r2: NSRect) -> Bool
```

```objc
static BOOL GSCompareRect(NSRect r1, NSRect r2);
```

```python
GSCompareRect(r1: NSRect, r2: NSRect) -> bool
```

## See Also

### Comparison and Sorting

- [`GSSortPointValue`](/Core/GlyphsCore/GSSortPointValue)
- [`GSSortPoint`](/Core/GlyphsCore/GSSortPoint)
- [`GSSortInteger`](/Core/GlyphsCore/GSSortInteger)
- [`GSSortFloat`](/Core/GlyphsCore/GSSortFloat)
- [`GSSortFloatLenient`](/Core/GlyphsCore/GSSortFloatLenient)
- [`GSComparePoint`](/Core/GlyphsCore/GSComparePoint)
- [`GSCompareSize`](/Core/GlyphsCore/GSCompareSize)
- [`GSCompareTransformStruct`](/Core/GlyphsCore/GSCompareTransformStruct)
- [`GSAffineTransformIsIdentity`](/Core/GlyphsCore/GSAffineTransformIsIdentity)
- [`GSCompareRange`](/Core/GlyphsCore/GSCompareRange)

