Vector2.Clamp(Vector2, Vector2, Vector2) Metodo

Definizione

Limita un vettore tra un valore minimo e un valore massimo.Restricts a vector between a minimum and a maximum value.

public:
 static System::Numerics::Vector2 Clamp(System::Numerics::Vector2 value1, System::Numerics::Vector2 min, System::Numerics::Vector2 max);
public static System.Numerics.Vector2 Clamp (System.Numerics.Vector2 value1, System.Numerics.Vector2 min, System.Numerics.Vector2 max);
static member Clamp : System.Numerics.Vector2 * System.Numerics.Vector2 * System.Numerics.Vector2 -> System.Numerics.Vector2
Public Shared Function Clamp (value1 As Vector2, min As Vector2, max As Vector2) As Vector2

Parametri

value1
Vector2

Vettore da limitare.The vector to restrict.

min
Vector2

Valore minimo.The minimum value.

max
Vector2

Valore massimo.The maximum value.

Restituisce

Vector2

Vettore limitato.The restricted vector.

Si applica a