SByte.Clamp(SByte, SByte, SByte) Methode

Definition

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

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

Parameter

value
SByte

Der zu klemmende Wert.

min
SByte

Das inklusive Minimum, auf das value klammern soll.

max
SByte

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: