NFloat.ClampNative(NFloat, NFloat, NFloat) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Clamps a value to an inclusive minimum and maximum value using platform-specific behavior for NaN and NegativeZero.
public:
static System::Runtime::InteropServices::NFloat ClampNative(System::Runtime::InteropServices::NFloat value, System::Runtime::InteropServices::NFloat min, System::Runtime::InteropServices::NFloat max) = System::Numerics::INumber<System::Runtime::InteropServices::NFloat>::ClampNative;
public static System.Runtime.InteropServices.NFloat ClampNative(System.Runtime.InteropServices.NFloat value, System.Runtime.InteropServices.NFloat min, System.Runtime.InteropServices.NFloat max);
static member ClampNative : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> System.Runtime.InteropServices.NFloat
Public Shared Function ClampNative (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.