# Sandbox.Rect.IsInside

## Overload 1

```csharp
bool IsInside(in Rect rect, bool fullyInside = False)
```

Return true if the passed rect is partially or fully inside this rect.

### Parameters

- `in rect` (`Rect`): The passed rect to test.
- `fullyInside` (`bool`), default `False`: `true` to test if the given rect is completely inside this rect. `false` to test for an intersection.

### Returns

`bool`

## Overload 2

```csharp
bool IsInside(in Vector2 pos)
```

Return true if the passed point is inside this rect.

### Parameters

- `in pos` (`Vector2`)

### Returns

`bool`

Declared in [Sandbox.Rect](/api/Sandbox.Rect).
Assembly: `Sandbox.System`.
