com.scichart.core.utility Package > NumberUtil Class > constrain Method : constrain(double,double,double) Method
The value to constrain
The lover bound
The upper bounds
constrain(double,double,double) Method
Constrains the value to specified bounds
Syntax
public static double constrain( 
   double value,
   double lowerBound,
   double upperBound
)

Parameters

value
The value to constrain
lowerBound
The lover bound
upperBound
The upper bounds

Return Value

The constrained value
See Also