Compartir a través de


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

Definición

Fija un valor en un valor mínimo inclusivo y máximo.

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

Parámetros

value
NFloat

Valor que se va a fijar.

min
NFloat

El mínimo inclusivo al que value debe sujetarse.

max
NFloat

Máximo inclusivo al que value debe sujetarse.

Devoluciones

Resultado de la fijación value en el intervalo inclusivo de min y max.

Implementaciones

Se aplica a