Math<T>.Clip Method
Clips a number so that it is within the specified interval.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
C#
value constrained to the specified interval.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
[ObsoleteAttribute("Use Clamp instead.")]
public static T Clip(
T lowerBound,
T upperBound,
T value
)Parameters
- lowerBound T
- The lower bound of the interval.
- upperBound T
- The upper bound of the interval.
- value T
- The value to constrain.
Return Value
Tvalue constrained to the specified interval.
Remarks
Use Clamp(T, T, T) instead.