Single.Clamp(Single, Single, Single) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將值夾在內含最小值和最大值。
public:
static float Clamp(float value, float min, float max) = System::Numerics::INumber<float>::Clamp;
public static float Clamp(float value, float min, float max);
static member Clamp : single * single * single -> single
Public Shared Function Clamp (value As Single, min As Single, max As Single) As Single
參數
- value
- Single
夾持的價值。
- min
- Single
包容性的最低限 value 度應該被夾住。
- max
- Single
包容性最大值 value 應該被夾住。
傳回
將 和 的包容範圍 valuemin箝取max後的結果。