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

定義

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

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

パラメーター

value
Int32

クランプする値。

min
Int32

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

max
Int32

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

返品

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

実装

適用対象