Operations<T>.Clamp Method

Returns a number clamped by a maximum and minimum value.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public static T Clamp(
	T x,
	T min,
	T max
)

Parameters

x  T
 
min  T
 
max  T
 

Return Value

T

See Also