Vector3IntExtensions.Clamped

Extension Method in Vector3IntExtensions

Declaration

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

Description

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

Parameters

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

Returns

Vector3IntA new clamped vector.