UInt32.Clamp(UInt32, UInt32, UInt32) Methode

Definition

Klammert einen Wert auf einen inklusiven Minimal- und Maximalwert.

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

Parameter

value
UInt32

Der zu klammernde Wert.

min
UInt32

Das inklusive Minimum, an das value klammert werden soll.

max
UInt32

Das inklusive Maximum, an das value geklemmt werden soll.

Gibt zurück

Das Ergebnis der Klammerung value an den inklusiven Bereich von min und max.

Implementiert

Gilt für: