| Parameter | Description |
|---|---|
| vector | The vector to clamp. |
| maxLength | The maximum length to clamp the vector to. |
Vector2
A copy of vector with its magnitude clamped to maxLength.
Creates a copy of a given vector, with its magnitude clamped to a maximum length.