# `GSRectFromTwoPoints`

*Function*

## Declaration

```objc
NSRect GSRectFromTwoPoints(NSPoint a, NSPoint b);
```

```python
GSRectFromTwoPoints(a: NSPoint, b: NSPoint) -> NSRect
```

## See Also

### Rect Geometry

- [`GSRectFromFourPoints`](/Core/GlyphsCore/GSRectFromFourPoints) — Returns the bounds of the given four points.
- [`GSRectInsetWithEdgeInsets`](/Core/GlyphsCore/GSRectInsetWithEdgeInsets)

