UInt16.Clamp(UInt16, UInt16, UInt16) Methode

Definition

Klammert einen Wert auf einen inklusiven Minimal- und Maximalwert.

public:
 static System::UInt16 Clamp(System::UInt16 value, System::UInt16 min, System::UInt16 max) = System::Numerics::INumber<System::UInt16>::Clamp;
public static ushort Clamp(ushort value, ushort min, ushort max);
static member Clamp : uint16 * uint16 * uint16 -> uint16
Public Shared Function Clamp (value As UShort, min As UShort, max As UShort) As UShort

Parameter

value
UInt16

Der zu klammernde Wert.

min
UInt16

Das inklusive Minimum, an das value klammert werden soll.

max
UInt16

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: