# Sandbox.Rect.Rect

## Overload 1

```csharp
Rect(in float x, in float y, in float width, in float height)
```

Initialize a Rect at given position and with given size.

### Parameters

- `in x` (`float`)
- `in y` (`float`)
- `in width` (`float`)
- `in height` (`float`)

## Overload 2

```csharp
Rect(in Vector2 point, in Vector2 size = null)
```

Initialize a Rect at given position and with given size.

### Parameters

- `in point` (`Vector2`)
- `in size` (`Vector2`), default `null`

Declared in [Sandbox.Rect](/api/Sandbox.Rect).
Assembly: `Sandbox.System`.
