Vector3IntExtensions.Wrapped

Extension Method in Vector3IntExtensions

Declaration

public static Vector3Int Wrapped(this Vector3Int vector, Vector3Int min, Vector3Int max)

Description

Wraps the vector to the range [min..max].

Parameters

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

Returns

Vector3IntA new wrapped vector.