UInt32.Clamp(UInt32, UInt32, UInt32) Metoda

Definicja

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

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

Parametry

value
UInt32

Wartość do zacisku.

min
UInt32

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

max
UInt32

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

Zwraca

Wynik zaciskania value do zakresu min inkluzywnego i max.

Implementuje

Dotyczy