# `GSRectFromFourPoints`

*Function*

Returns the bounds of the given four points.

## Declaration

```objc
NSRect GSRectFromFourPoints(NSPoint a, NSPoint b, NSPoint c, NSPoint d);
```

```python
GSRectFromFourPoints(a: NSPoint, b: NSPoint, c: NSPoint, d: NSPoint) -> NSRect
```

## See Also

### Rect Geometry

- [`GSRectFromTwoPoints`](/Core/GlyphsCore/GSRectFromTwoPoints)
- [`GSRectInsetWithEdgeInsets`](/Core/GlyphsCore/GSRectInsetWithEdgeInsets)

