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

定義

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

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

パラメーター

value
UInt16

クランプする値。

min
UInt16

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

max
UInt16

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

返品

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

実装

適用対象