UInt32.Clamp(UInt32, UInt32, UInt32) Méthode

Définition

Limite une valeur à une valeur minimale et maximale inclusive.

public:
 static System::UInt32 Clamp(System::UInt32 value, System::UInt32 min, System::UInt32 max) = System::Numerics::INumber<System::UInt32>::Clamp;
public static uint Clamp(uint value, uint min, uint max);
static member Clamp : uint32 * uint32 * uint32 -> uint32
Public Shared Function Clamp (value As UInteger, min As UInteger, max As UInteger) As UInteger

Paramètres

value
UInt32

Valeur à limiter.

min
UInt32

Minimum inclusif auquel value il convient de serrer.

max
UInt32

Maximum inclusif auquel value il convient de serrer.

Retours

Résultat de la value pince à la plage inclusive de min et max.

Implémente

S’applique à