UInt16.Clamp(UInt16, UInt16, UInt16) Metoda

Definicja

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

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

Parametry

value
UInt16

Wartość do zacisku.

min
UInt16

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

max
UInt16

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

Zwraca

Wynik zaciskania value do zakresu min inkluzywnego i max.

Implementuje

Dotyczy