[]
Restricts a vector between a minimum and a maximum value.
public static Vector2 Clamp(Vector2 value, Vector2 min, Vector2 max)
| Type | Name | Description |
|---|---|---|
| Vector2 | value | The vector to restrict. |
| Vector2 | min | The minimum value. |
| Vector2 | max | The maximum value. |
| Type | Description |
|---|---|
| Vector2 | The restricted vector. |