Int16.Clamp(Int16, Int16, Int16) Methode

Definition

Klemmt einen Wert auf einen inklusiven Minimal- und Höchstwert.

public:
 static short Clamp(short value, short min, short max) = System::Numerics::INumber<short>::Clamp;
public static short Clamp (short value, short min, short max);
static member Clamp : int16 * int16 * int16 -> int16
Public Shared Function Clamp (value As Short, min As Short, max As Short) As Short

Parameter

value
Int16

Der zu klemmende Wert.

min
Int16

Das inklusive Minimum, auf das value klammern soll.

max
Int16

Das inklusive Maximum, auf das value klammern soll.

Gibt zurück

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

Implementiert

Gilt für: