UInt32.Clamp(UInt32, UInt32, UInt32) メソッド

定義

値を包括的な最小値と最大値にクランプします。

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

パラメーター

value
UInt32

クランプする値。

min
UInt32

valueがクランプする必要がある包括的な最小値。

max
UInt32

valueをクランプする必要がある包括的な最大値。

返品

valueminの包括的な範囲にmaxをクランプした結果。

実装

適用対象