Math<T>.Clip Method

Clips a number so that it is within the specified interval.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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