UInt32.Clamp(UInt32, UInt32, UInt32) Methode

Definitie

Klemmen een waarde tot een inclusieve minimum- en maximumwaarde.

public:
 static System::UInt32 Clamp(System::UInt32 value, System::UInt32 min, System::UInt32 max) = System::Numerics::INumber<System::UInt32>::Clamp;
public static uint Clamp(uint value, uint min, uint max);
static member Clamp : uint32 * uint32 * uint32 -> uint32
Public Shared Function Clamp (value As UInteger, min As UInteger, max As UInteger) As UInteger

Parameters

value
UInt32

De waarde die moet worden vastgezet.

min
UInt32

Het inclusieve minimum waarop value moet worden geklemd.

max
UInt32

Het inclusief maximum dat value moet worden vastgeklemd.

Retouren

Het resultaat van klemmen value tot het inclusieve bereik van min en max.

Implementeringen

Van toepassing op