template<class T>inline void osg::clampBetweenRange

(T& value,
  const T minValue,
  const T maxValue,
  const char* valueName)

if value is between or equal to minValue and maxValue do nothing - legal value, otherise clamp value to specified to range and return warning with valueName specifying which variable was clamped.

Documentation

if value is between or equal to minValue and maxValue do nothing - legal value, otherise clamp value to specified to range and return warning with valueName specifying which variable was clamped. Equivilant to calling clampGEQUAL(value,minValue,valueName); clampLEQUAL(value,maxValue,valueName);

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.