Math<T>.Clip Method

Note: This API is now obsolete.
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#
[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

T
value constrained to the specified interval.

Remarks

Use Clamp(T, T, T) instead.

See Also