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.0
C#
public static T Clip(
	T lowerBound,
	T upperBound,
	T value
)

Parameters

lowerBound  T
 
upperBound  T
 
value  T
 

Return Value

T

Remarks

The first two parameters contain the lower and upper bounds. The third parameter is the value that should be clipped.

See Also