NFloat.Clamp(NFloat, NFloat, NFloat) Method

Definition

Clamps a value to an inclusive minimum and maximum value.

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

Parameters

value
NFloat

The value to clamp.

min
NFloat

The inclusive minimum to which value should clamp.

max
NFloat

The inclusive maximum to which value should clamp.

Returns

The result of clamping value to the inclusive range of min and max.

Implements

Applies to