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 最大値。

戻り値

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

実装

適用対象