Int32.Clamp(Int32, Int32, Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
値を包括的な最小値と最大値にクランプします。
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をクランプする必要がある包括的な最大値。
返品
valueとminの包括的な範囲にmaxをクランプした結果。