INumber<TSelf>.ClampNative(TSelf, TSelf, TSelf) Methode

Definition

Klammert einen Wert auf einen inklusiven Minimal- und Maximalwert unter Verwendung plattformspezifischer Verhaltensweisen für NaN und NegativeZero.

public:
 static override TSelf ClampNative(TSelf value, TSelf min, TSelf max);
public static virtual TSelf ClampNative(TSelf value, TSelf min, TSelf max);
static member ClampNative : 'Self * 'Self * 'Self -> 'Self
Public Shared Overrides Function ClampNative (value As TSelf, min As TSelf, max As TSelf) As TSelf

Parameter

value
TSelf

Der zu klammernde Wert.

min
TSelf

Das inklusive Minimum, an das value klammert werden soll.

max
TSelf

Das inklusive Maximum, an das value geklemmt werden soll.

Gibt zurück

TSelf

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

Ausnahmen

min ist größer als max.

Gilt für: