API Reference > OdGe Classes > OdGeInterval Class > OdGeInterval Methods > OdGeInterval::clamp Method
OdGeInterval::clamp Method
Syntax
C++
double clamp(double value) const;
Parameters 
Description 
double value 
[in] The parameter to be corrected. 

Corrects the parameter so that it belongs to the interval. If parameter is already within interval, then it is returned as is. Otherwise parameter is moved to closest of endpoints. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.