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

Définition

Fixe une valeur à une valeur minimale et maximale inclusive.

public:
 static System::Runtime::InteropServices::NFloat Clamp(System::Runtime::InteropServices::NFloat value, System::Runtime::InteropServices::NFloat min, System::Runtime::InteropServices::NFloat max) = System::Numerics::INumber<System::Runtime::InteropServices::NFloat>::Clamp;
public static System.Runtime.InteropServices.NFloat Clamp (System.Runtime.InteropServices.NFloat value, System.Runtime.InteropServices.NFloat min, System.Runtime.InteropServices.NFloat max);
static member Clamp : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function Clamp (value As NFloat, min As NFloat, max As NFloat) As NFloat

Paramètres

value
NFloat

Valeur à serrer.

min
NFloat

Minimum inclusif auquel value doit se fixer.

max
NFloat

Le maximum inclusif auquel value doit se serrer.

Retours

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

Implémente

S’applique à