# Vector3.ClampLength

## Overload 1

```csharp
Vector3 ClampLength(float maxLength)
```

Returns a vector whose length is limited to given maximum.

### Parameters

- `maxLength` (`float`)

### Returns

`Vector3`

## Overload 2

```csharp
Vector3 ClampLength(float minLength, float maxLength)
```

Returns a vector whose length is limited between given minimum and maximum.

### Parameters

- `minLength` (`float`)
- `maxLength` (`float`)

### Returns

`Vector3`

Declared in [Vector3](/api/Vector3).
Assembly: `Sandbox.System`.
