Int16.Clamp(Int16, Int16, Int16) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Limite une valeur à une valeur minimale et maximale inclusive.
public:
static short Clamp(short value, short min, short max) = System::Numerics::INumber<short>::Clamp;
public static short Clamp(short value, short min, short max);
static member Clamp : int16 * int16 * int16 -> int16
Public Shared Function Clamp (value As Short, min As Short, max As Short) As Short
Paramètres
- value
- Int16
Valeur à limiter.
- min
- Int16
Minimum inclusif auquel value il convient de serrer.
- max
- Int16
Maximum inclusif auquel value il convient de serrer.
Retours
Résultat de la value pince à la plage inclusive de min et max.