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

vectorThe vector to wrap.
minThe minimum value.
maxThe maximum value.

Returns

Vector2IntA new wrapped vector.