Int16.Clamp(Int16, Int16, Int16) Methode

Definition

Klammert einen Wert auf einen inklusiven Minimal- und Maximalwert.

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 klammernde Wert.

min
Int16

Das inklusive Minimum, an das value klammert werden soll.

max
Int16

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: