Int16.Clamp(Int16, Int16, Int16) Metoda

Definicja

Zaciska wartość do wartości minimalnej i maksymalnej.

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

Parametry

value
Int16

Wartość do zacisku.

min
Int16

Minimum inkluzywne, do którego value należy zacisać.

max
Int16

Maksimum inkluzywne, do którego value należy zacisać.

Zwraca

Wynik zaciskania value do inkluzywnego min zakresu i max.

Implementuje

Dotyczy