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