Vector2IntExtensions.Clamped
Extension Method in Vector2IntExtensions
Declaration
public static Vector2Int Clamped(this Vector2Int vector, Vector2Int min, Vector2Int max)
Description
Clamps the vector to the range [min..max].
Parameters
vector | The vector to clamp. |
min | The minimum value. |
max | The maximum value. |
Returns
Vector2Int | A new clamped vector. |