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: 9.0.2
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public static T Clip(
T lowerBound,
T upperBound,
T value
)
Parameters
Return Value
TRemarks
The first two parameters contain the lower and upper bounds. The third parameter is the value that should be clipped.