Condividi tramite


Vector2.Clamp(Vector2, Vector2, Vector2) Metodo

Definizione

Limita un vettore tra un valore minimo e un valore massimo.

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.

min
Vector2

Valore minimo.

max
Vector2

Valore massimo.

Restituisce

Vettore limitato.

Si applica a