# Sandbox.Rect.ClosestPoint

```csharp
Vector2 ClosestPoint(in Vector2 point)
```

Returns the closest point on this rect to another point

### Parameters

- `in point` (`Vector2`)

### Returns

`Vector2`

Declared in [Sandbox.Rect](/api/Sandbox.Rect).
Assembly: `Sandbox.System`.
