Vector2IntExtensions.Wrapped
Extension Method in Vector2IntExtensions
Declaration
public static Vector2Int Wrapped(this Vector2Int vector, Vector2Int min, Vector2Int max)
Description
Wraps the vector to the range [min..max].
Parameters
vector | The vector to wrap. |
min | The minimum value. |
max | The maximum value. |
Returns
Vector2Int | A new wrapped vector. |