# Sandbox.Rect.FromPoints

```csharp
static Rect FromPoints(in Vector2 a, in Vector2 b)
```

Create a rect between two points. The order of the points doesn't matter.

### Parameters

- `in a` (`Vector2`)
- `in b` (`Vector2`)

### Returns

`Rect`

Declared in [Sandbox.Rect](/api/Sandbox.Rect).
Assembly: `Sandbox.System`.
