# Sandbox.Rect.Add

## Overload 1

```csharp
void Add(Rect r)
```

Expand this Rect to contain the other rect

### Parameters

- `r` (`Rect`)

## Overload 2

```csharp
void Add(Vector2 point)
```

Expand this Rect to contain the point

### Parameters

- `point` (`Vector2`)

Declared in [Sandbox.Rect](/api/Sandbox.Rect).
Assembly: `Sandbox.System`.
