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

定義

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

public:
 static short Clamp(short value, short min, short max) = System::Numerics::INumber<short>::Clamp;
public static short Clamp(short value, short min, short max);
static member Clamp : int16 * int16 * int16 -> int16
Public Shared Function Clamp (value As Short, min As Short, max As Short) As Short

パラメーター

value
Int16

クランプする値。

min
Int16

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

max
Int16

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

返品

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

実装

適用対象