Condividi tramite


NFloat.Clamp(NFloat, NFloat, NFloat) Metodo

Definizione

Blocca un valore a un valore minimo e massimo inclusivo.

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

Parametri

value
NFloat

Valore da bloccare.

min
NFloat

Minimo inclusivo al quale value deve essere bloccato.

max
NFloat

Massimo inclusivo al quale value deve essere bloccato.

Restituisce

Risultato del value blocco all'intervallo inclusivo di min e max.

Implementazioni

Si applica a